fix: renumber worktree merge history migrations

This commit is contained in:
dotta 2026-03-20 17:23:45 -05:00
parent ae6aac044d
commit d47ec56eca
12 changed files with 215 additions and 136 deletions

View file

@ -0,0 +1,6 @@
DROP INDEX IF EXISTS "issues_open_routine_execution_uq";--> statement-breakpoint
CREATE UNIQUE INDEX IF NOT EXISTS "issues_open_routine_execution_uq" ON "issues" USING btree ("company_id","origin_kind","origin_id") WHERE "issues"."origin_kind" = 'routine_execution'
and "issues"."origin_id" is not null
and "issues"."hidden_at" is null
and "issues"."execution_run_id" is not null
and "issues"."status" in ('backlog', 'todo', 'in_progress', 'in_review', 'blocked');