Merge ~cjwatson/launchpad:merge-db-stable into launchpad:master

Proposed by Colin Watson
Status: Merged
Approved by: Colin Watson
Approved revision: 24c783707c1ac8307119501945fdd144cd022c26
Merge reported by: Otto Co-Pilot
Merged at revision: not available
Proposed branch: ~cjwatson/launchpad:merge-db-stable
Merge into: launchpad:master
Diff against target: 20 lines (+14/-0)
1 file modified
database/schema/patch-2211-10-0.sql (+14/-0)
Reviewer Review Type Date Requested Status
Colin Watson (community) Approve
Review via email: mp+431206@code.launchpad.net

Commit message

Merge db-stable 24c783707c (Add `Archive.official` database column)

To post a comment you must log in.
Revision history for this message
Colin Watson (cjwatson) wrote :

Deployed to the production database today.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/database/schema/patch-2211-10-0.sql b/database/schema/patch-2211-10-0.sql
2new file mode 100644
3index 0000000..11d1ff9
4--- /dev/null
5+++ b/database/schema/patch-2211-10-0.sql
6@@ -0,0 +1,14 @@
7+-- Copyright 2022 Canonical Ltd. This software is licensed under the
8+-- GNU Affero General Public License version 3 (see the file LICENSE).
9+
10+SET client_min_messages=ERROR;
11+
12+ALTER TABLE Archive
13+ ADD COLUMN official boolean DEFAULT FALSE NOT NULL;
14+
15+COMMENT ON COLUMN Archive.official
16+ IS 'True if this archive is an official source of packages for its distribution; false if it is an unofficial add-on.';
17+
18+UPDATE archive SET official = true WHERE purpose IN (1, 4);
19+
20+INSERT INTO LaunchpadDatabaseRevision VALUES (2211, 10, 0);

Subscribers

People subscribed via source and target branches

to status/vote changes: