launchpad-reviewers team mailing list archive
-
launchpad-reviewers team
-
Mailing list archive
-
Message #29252
[Merge] ~jugmac00/launchpad:identify-ppa-as-official-db.patch into launchpad:master
Jürgen Gmach has proposed merging ~jugmac00/launchpad:identify-ppa-as-official-db.patch into launchpad:master.
Commit message:
Add `Archive.official` database column
Requested reviews:
Launchpad code reviewers (launchpad-reviewers)
For more details, see:
https://code.launchpad.net/~jugmac00/launchpad/+git/launchpad/+merge/430739
--
Your team Launchpad code reviewers is requested to review the proposed merge of ~jugmac00/launchpad:identify-ppa-as-official-db.patch 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..1651a5d
--- /dev/null
+++ b/database/schema/patch-2211-10-0.sql
@@ -0,0 +1,12 @@
+-- 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 'Whether this Archive is official, either inferred from Archive.purpose or set by the distribution owner.';
+
+INSERT INTO LaunchpadDatabaseRevision VALUES (2211, 10, 0);