launchpad-reviewers team mailing list archive
-
launchpad-reviewers team
-
Mailing list archive
-
Message #28069
[Merge] ~lgp171188/launchpad:lock-status-not-nullable into launchpad:db-devel
Guruprasad has proposed merging ~lgp171188/launchpad:lock-status-not-nullable into launchpad:db-devel.
Commit message:
Disallow NULL values for Bug.lock_status
Requested reviews:
Launchpad code reviewers (launchpad-reviewers)
For more details, see:
https://code.launchpad.net/~lgp171188/launchpad/+git/launchpad/+merge/415259
--
Your team Launchpad code reviewers is requested to review the proposed merge of ~lgp171188/launchpad:lock-status-not-nullable into launchpad:db-devel.
diff --git a/database/schema/patch-2210-38-1.sql b/database/schema/patch-2210-38-1.sql
new file mode 100644
index 0000000..6519b25
--- /dev/null
+++ b/database/schema/patch-2210-38-1.sql
@@ -0,0 +1,9 @@
+-- Copyright 2022 Canonical Ltd. This software is licensed under the
+-- GNU Affero General Public License version 3 (see the file LICENSE).
+
+SET client_min_messages=ERROR;
+
+ALTER TABLE Bug
+ ALTER COLUMN lock_status SET NOT NULL;
+
+INSERT INTO LaunchpadDatabaseRevision VALUES (2210, 38, 1);
Follow ups