mirror of
https://github.com/simstudioai/sim.git
synced 2026-09-01 14:59:19 +08:00
chore(db): drop redundant idx_webhook_on_workflow_id_block_id index (#4809)
Removed because (workflow_id, block_id) is a left-prefix of idx_webhook_on_workflow_id_block_id_updated_at_desc, which fully covers it. The dropped index was non-unique and enforced no constraint.
This commit is contained in:
@@ -0,0 +1 @@
|
||||
DROP INDEX "idx_webhook_on_workflow_id_block_id";
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1541,6 +1541,13 @@
|
||||
"when": 1780081787541,
|
||||
"tag": "0220_early_hellion",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 221,
|
||||
"version": "7",
|
||||
"when": 1780111474238,
|
||||
"tag": "0221_secret_hannibal_king",
|
||||
"breakpoints": true
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -747,11 +747,6 @@ export const webhook = pgTable(
|
||||
pathIdx: uniqueIndex('path_deployment_unique')
|
||||
.on(table.path, table.deploymentVersionId)
|
||||
.where(sql`${table.archivedAt} IS NULL`),
|
||||
// Optimize queries for webhooks by workflow and block
|
||||
workflowBlockIdx: index('idx_webhook_on_workflow_id_block_id').on(
|
||||
table.workflowId,
|
||||
table.blockId
|
||||
),
|
||||
workflowDeploymentIdx: index('webhook_workflow_deployment_idx').on(
|
||||
table.workflowId,
|
||||
table.deploymentVersionId
|
||||
|
||||
Reference in New Issue
Block a user