← Back to team overview

launchpad-reviewers team mailing list archive

[Merge] ~ines-almeida/launchpad:merge-db-stable into launchpad:master

 

Ines Almeida has proposed merging ~ines-almeida/launchpad:merge-db-stable into launchpad:master.

Commit message:
Merge db-stable 2eb648a87d18d8b7f9040e3676e7448a54e9aa9d (Cleanup after pro-enable migration)

Requested reviews:
  Launchpad code reviewers (launchpad-reviewers)

For more details, see:
https://code.launchpad.net/~ines-almeida/launchpad/+git/launchpad/+merge/467590
-- 
Your team Launchpad code reviewers is requested to review the proposed merge of ~ines-almeida/launchpad:merge-db-stable into launchpad:master.
diff --git a/database/schema/patch-2211-24-0.sql b/database/schema/patch-2211-24-0.sql
new file mode 100644
index 0000000..90e16f7
--- /dev/null
+++ b/database/schema/patch-2211-24-0.sql
@@ -0,0 +1,10 @@
+-- Copyright 2024 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 Snap
+    ALTER COLUMN pro_enable SET DEFAULT false,
+    ALTER COLUMN pro_enable SET NOT NULL;
+
+INSERT INTO LaunchpadDatabaseRevision VALUES (2211, 24, 0);