← Back to team overview

launchpad-reviewers team mailing list archive

[Merge] ~ines-almeida/launchpad:merge-button/add-merge-type-db into launchpad:db-devel

 

Ines Almeida has proposed merging ~ines-almeida/launchpad:merge-button/add-merge-type-db into launchpad:db-devel.

Commit message:
Add `merge_type` column to BranchMergeProposal table

This will help us keep track of merges done via Launchpad's API and UI

Requested reviews:
  Launchpad code reviewers (launchpad-reviewers)

For more details, see:
https://code.launchpad.net/~ines-almeida/launchpad/+git/launchpad/+merge/486004
-- 
Your team Launchpad code reviewers is requested to review the proposed merge of ~ines-almeida/launchpad:merge-button/add-merge-type-db into launchpad:db-devel.
diff --git a/database/schema/patch-2211-40-0.sql b/database/schema/patch-2211-40-0.sql
new file mode 100644
index 0000000..3e7d5cc
--- /dev/null
+++ b/database/schema/patch-2211-40-0.sql
@@ -0,0 +1,12 @@
+-- Copyright 2025 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 BranchMergeProposal
+    ADD COLUMN merge_type integer DEFAULT 0 NOT NULL;
+
+COMMENT ON COLUMN BranchMergeProposal.merge_type
+    IS 'The type of merge used in proposal merged through launchpad API';
+
+INSERT INTO LaunchpadDatabaseRevision VALUES (2211, 40, 0);

Follow ups