-
Notifications
You must be signed in to change notification settings - Fork 433
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(api,cli,ui): disable project key #6429
Conversation
|
||
-- +migrate Up | ||
ALTER TABLE project_key ADD COLUMN disabled BOOLEAN NOT NULL DEFAULT FALSE; | ||
UPDATE project_key SET disabled = false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DEFAULT false is not updating all existing rows ?
If there is lots of values the right pattern is:
ALTER TABLE project_key ADD COLUMN disabled BOOLEAN NOT NULL;
UPDATE project_key SET disabled = false;
ALTER TABLE "project_key" ALTER COLUMN disabled SET DEFAULT false;
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DEFAULT false is not updating all existing rows ?
nope
there are not so much rows (1468) in the table
Co-authored-by: Guiheux Steven <[email protected]>
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
No description provided.