launchpad-reviewers team mailing list archive
-
launchpad-reviewers team
-
Mailing list archive
-
Message #26300
[Merge] ~cjwatson/launchpad:merge-db-stable into launchpad:master
Colin Watson has proposed merging ~cjwatson/launchpad:merge-db-stable into launchpad:master.
Commit message:
Merge db-stable 1b199484b3 (GitRepository repack thresholds)
Requested reviews:
Launchpad code reviewers (launchpad-reviewers)
For more details, see:
https://code.launchpad.net/~cjwatson/launchpad/+git/launchpad/+merge/398003
--
Your team Launchpad code reviewers is requested to review the proposed merge of ~cjwatson/launchpad:merge-db-stable into launchpad:master.
diff --git a/database/schema/patch-2210-25-0.sql b/database/schema/patch-2210-25-0.sql
new file mode 100644
index 0000000..7397939
--- /dev/null
+++ b/database/schema/patch-2210-25-0.sql
@@ -0,0 +1,15 @@
+-- Copyright 2021 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 GitRepository
+ ADD COLUMN loose_object_count integer,
+ ADD COLUMN pack_count integer,
+ ADD COLUMN date_last_repacked timestamp without time zone,
+ ADD COLUMN date_last_scanned timestamp without time zone;
+
+COMMENT ON COLUMN GitRepository.date_last_scanned IS 'The datetime that packs and loose_objects were last updated for this repository.';
+COMMENT ON COLUMN GitRepository.date_last_repacked IS 'The datetime that the last repack request was executed successfully on Turnip.';
+
+INSERT INTO LaunchpadDatabaseRevision VALUES (2210, 25, 0);