Colin Watson has proposed merging ~cjwatson/launchpad:merge-db-stable into launchpad:master.
Commit message: Merge db-stable 24c783707c (Add `Archive.official` database column) Requested reviews: Launchpad code reviewers (launchpad-reviewers) For more details, see: https://code.launchpad.net/~cjwatson/launchpad/+git/launchpad/+merge/431206 -- Your team Launchpad code reviewers is requested to review the proposed merge of ~cjwatson/launchpad:merge-db-stable into launchpad:master.
diff --git a/database/schema/patch-2211-10-0.sql b/database/schema/patch-2211-10-0.sql new file mode 100644 index 0000000..11d1ff9 --- /dev/null +++ b/database/schema/patch-2211-10-0.sql @@ -0,0 +1,14 @@ +-- 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 Archive + ADD COLUMN official boolean DEFAULT FALSE NOT NULL; + +COMMENT ON COLUMN Archive.official + IS 'True if this archive is an official source of packages for its distribution; false if it is an unofficial add-on.'; + +UPDATE archive SET official = true WHERE purpose IN (1, 4); + +INSERT INTO LaunchpadDatabaseRevision VALUES (2211, 10, 0);
_______________________________________________ Mailing list: https://launchpad.net/~launchpad-reviewers Post to : [email protected] Unsubscribe : https://launchpad.net/~launchpad-reviewers More help : https://help.launchpad.net/ListHelp

