← Back to team overview

launchpad-reviewers team mailing list archive

[Merge] ~ines-almeida/launchpad:fetch-service-option-db-update into launchpad:db-devel

 

Ines Almeida has proposed merging ~ines-almeida/launchpad:fetch-service-option-db-update into launchpad:db-devel.

Commit message:
db: add new field Snap.use_fetch_service
    
The new field will dictate whether, while building a snap, the builder will use the (new) fetch-service or the (current) builder-proxy for external access


Requested reviews:
  Launchpad code reviewers (launchpad-reviewers): db

For more details, see:
https://code.launchpad.net/~ines-almeida/launchpad/+git/launchpad/+merge/461264

Related to: https://warthogs.atlassian.net/browse/LP-1461
-- 
Your team Launchpad code reviewers is requested to review the proposed merge of ~ines-almeida/launchpad:fetch-service-option-db-update into launchpad:db-devel.
diff --git a/database/schema/patch-2211-26-0.sql b/database/schema/patch-2211-26-0.sql
new file mode 100644
index 0000000..6f60d7e
--- /dev/null
+++ b/database/schema/patch-2211-26-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 ADD COLUMN use_fetch_service boolean DEFAULT false NOT NULL;
+
+COMMENT ON COLUMN Snap.use_fetch_service IS 'Whether to use the fetch-service in place of the builder-proxy when building this snap.';
+
+INSERT INTO LaunchpadDatabaseRevision VALUES (2211, 26, 0);

Follow ups