Skip to content

Commit 62655c5

Browse files
committed
chore(db): backfill isBranchableEnvironment for existing dev environments
Dev environments are now branchable. Backfill all existing non-archived DEVELOPMENT runtime environments so isBranchableEnvironment is true. TRI-8726
1 parent f446dfa commit 62655c5

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

  • internal-packages/database/prisma/migrations/20260618090554_backfill_branchable_dev_env
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
-- Dev environments are now branchable, backfill all existing
2+
UPDATE "RuntimeEnvironment"
3+
SET "isBranchableEnvironment" = true
4+
WHERE "type" = 'DEVELOPMENT'
5+
AND "isBranchableEnvironment" = false
6+
AND "archivedAt" IS NULL;

0 commit comments

Comments
 (0)