Skip to content

Commit

Permalink
1-3131: set default to non-nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasheartman committed Nov 19, 2024
1 parent b49526e commit 25dad23
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ exports.up = function (db, cb) {
SET potentially_stale = FALSE
WHERE potentially_stale IS NULL;
ALTER TABLE features
ALTER COLUMN potentially_stale SET DEFAULT FALSE;
ALTER TABLE features
ALTER COLUMN potentially_stale SET NOT NULL;
`,
Expand All @@ -18,8 +20,10 @@ exports.down = function (db, cb) {
db.runSql(
`
ALTER TABLE features
ALTER COLUMN potentially_stale DROP DEFAULT;
ALTER TABLE features
ALTER COLUMN potentially_stale DROP NOT NULL;
`,
cb
);
};
};

0 comments on commit 25dad23

Please sign in to comment.