Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

chore: make has_ai_task fields on workspace builds and template versions nullable#18403

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
hugodutka merged 2 commits intomainfromhugodutka/nullable-has-ai-task
Jun 17, 2025
Merged
Show file tree
Hide file tree
Changes from1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
NextNext commit
migrations
  • Loading branch information
@hugodutka
hugodutka committedJun 17, 2025
commit5e90dc256658db4b6046f1c076243b45b490a608
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
ALTER TABLE template_versions ALTER COLUMN has_ai_task SET DEFAULT false;
ALTER TABLE template_versions ALTER COLUMN has_ai_task SET NOT NULL;
ALTER TABLE workspace_builds ALTER COLUMN has_ai_task SET DEFAULT false;
ALTER TABLE workspace_builds ALTER COLUMN has_ai_task SET NOT NULL;
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
-- The fields must be nullable because there's a period of time between
-- inserting a row into the database and finishing the "plan" provisioner job
-- when the final value of the field is unknown.
ALTERTABLE template_versions ALTER COLUMN has_ai_task DROP DEFAULT;
ALTERTABLE template_versions ALTER COLUMN has_ai_task DROPNOT NULL;
ALTERTABLE workspace_builds ALTER COLUMN has_ai_task DROP DEFAULT;
ALTERTABLE workspace_builds ALTER COLUMN has_ai_task DROPNOT NULL;

[8]ページ先頭

©2009-2025 Movatter.jp