launchpad-reviewers team mailing list archive
-
launchpad-reviewers team
-
Mailing list archive
-
Message #26240
[Merge] launchpad:db-stable into launchpad:master
Blade Trykall has proposed merging launchpad:db-stable into launchpad:master.
Requested reviews:
Launchpad code reviewers (launchpad-reviewers)
For more details, see:
https://code.launchpad.net/~launchpad/launchpad/+git/launchpad/+merge/397635
--
Your team Launchpad code reviewers is requested to review the proposed merge of launchpad: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);