File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed
coderd/database/migrations Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change
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 ;
Original file line number Diff line number Diff line change
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 ;
You can’t perform that action at this time.
0 commit comments