Skip to content

Commit 5e90dc2

Browse files
committed
migrations
1 parent 5df70a6 commit 5e90dc2

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
ALTER TABLE template_versions ALTER COLUMN has_ai_task SET DEFAULT false;
2+
ALTER TABLE template_versions ALTER COLUMN has_ai_task SET NOT NULL;
3+
ALTER TABLE workspace_builds ALTER COLUMN has_ai_task SET DEFAULT false;
4+
ALTER TABLE workspace_builds ALTER COLUMN has_ai_task SET NOT NULL;
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
-- The fields must be nullable because there's a period of time between
2+
-- inserting a row into the database and finishing the "plan" provisioner job
3+
-- when the final value of the field is unknown.
4+
ALTER TABLE template_versions ALTER COLUMN has_ai_task DROP DEFAULT;
5+
ALTER TABLE template_versions ALTER COLUMN has_ai_task DROP NOT NULL;
6+
ALTER TABLE workspace_builds ALTER COLUMN has_ai_task DROP DEFAULT;
7+
ALTER TABLE workspace_builds ALTER COLUMN has_ai_task DROP NOT NULL;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy