Merge ~cjwatson/launchpad:db-archive-file-date-removed into launchpad:db-devel

Proposed by Colin Watson
Status: Merged
Approved by: Colin Watson
Approved revision: feee1b3c33d4a45a80e14909927ddbe954b90ec6
Merge reported by: Otto Co-Pilot
Merged at revision: not available
Proposed branch: ~cjwatson/launchpad:db-archive-file-date-removed
Merge into: launchpad:db-devel
Diff against target: 16 lines (+10/-0)
1 file modified
database/schema/patch-2211-15-1.sql (+10/-0)
Reviewer Review Type Date Requested Status
William Grant db Approve
Review via email: mp+436358@code.launchpad.net

Commit message

Add ArchiveFile.date_removed column

To post a comment you must log in.
Revision history for this message
William Grant (wgrant) :
review: Approve (db)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/database/schema/patch-2211-15-1.sql b/database/schema/patch-2211-15-1.sql
2new file mode 100644
3index 0000000..03933f9
4--- /dev/null
5+++ b/database/schema/patch-2211-15-1.sql
6@@ -0,0 +1,10 @@
7+-- Copyright 2023 Canonical Ltd. This software is licensed under the
8+-- GNU Affero General Public License version 3 (see the file LICENSE).
9+
10+SET client_min_messages=ERROR;
11+
12+ALTER TABLE ArchiveFile ADD COLUMN date_removed timestamp without time zone;
13+
14+COMMENT ON COLUMN ArchiveFile.date_removed IS 'The date when this file was entirely removed from the published archive.';
15+
16+INSERT INTO LaunchpadDatabaseRevision VALUES (2211, 15, 1);

Subscribers

People subscribed via source and target branches

to status/vote changes: