launchpad-reviewers team mailing list archive
-
launchpad-reviewers team
-
Mailing list archive
-
Message #28527
[Merge] ~andrey-fedoseev/launchpad:add-snap-build-target-architectures into launchpad:db-devel
Andrey Fedoseev has proposed merging ~andrey-fedoseev/launchpad:add-snap-build-target-architectures into launchpad:db-devel.
Commit message:
Add `SnapBuild.target_architectures` column
Requested reviews:
Launchpad code reviewers (launchpad-reviewers)
For more details, see:
https://code.launchpad.net/~andrey-fedoseev/launchpad/+git/launchpad/+merge/423916
--
Your team Launchpad code reviewers is requested to review the proposed merge of ~andrey-fedoseev/launchpad:add-snap-build-target-architectures into launchpad:db-devel.
diff --git a/database/schema/patch-2210-48-0.sql b/database/schema/patch-2210-48-0.sql
new file mode 100644
index 0000000..55b33ad
--- /dev/null
+++ b/database/schema/patch-2210-48-0.sql
@@ -0,0 +1,11 @@
+-- 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 SnapBuild
+ ADD COLUMN target_architectures jsonb NULL;
+
+COMMENT ON COLUMN SnapBuild.target_architectures IS 'A list of target architectures for a snap build.';
+
+INSERT INTO LaunchpadDatabaseRevision VALUES (2210, 48, 0);