Merge lp:~cjwatson/launchpad/db-archive-file-history into lp:launchpad/db-devel

Proposed by Colin Watson on 2018-04-21
Status: Needs review
Proposed branch: lp:~cjwatson/launchpad/db-archive-file-history
Merge into: lp:launchpad/db-devel
Diff against target: 17 lines (+13/-0)
1 file modified
database/schema/patch-2209-74-1.sql (+13/-0)
To merge this branch: bzr merge lp:~cjwatson/launchpad/db-archive-file-history
Reviewer Review Type Date Requested Status
Stuart Bishop db 2018-04-21 Pending
Launchpad code reviewers db 2018-04-21 Pending
Review via email:

Commit message

Add ArchiveFile.date_created and ArchiveFile.date_superseded.

Description of the change

See bug 1765933 for rationale.

To post a comment you must log in.

Unmerged revisions

13843. By Colin Watson on 2018-04-21

Add ArchiveFile.date_created and ArchiveFile.date_superseded.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added file 'database/schema/patch-2209-74-1.sql'
2--- database/schema/patch-2209-74-1.sql 1970-01-01 00:00:00 +0000
3+++ database/schema/patch-2209-74-1.sql 2018-04-21 11:12:28 +0000
4@@ -0,0 +1,13 @@
5+-- Copyright 2018 Canonical Ltd. This software is licensed under the
6+-- GNU Affero General Public License version 3 (see the file LICENSE).
8+SET client_min_messages=ERROR;
10+ALTER TABLE ArchiveFile
11+ ADD COLUMN date_created timestamp without time zone,
12+ ADD COLUMN date_superseded timestamp without time zone;
14+COMMENT ON COLUMN ArchiveFile.date_created IS 'The date when this file was created.';
15+COMMENT ON COLUMN ArchiveFile.date_superseded IS 'The date when this file was removed or superseded by a newer version.';
17+INSERT INTO LaunchpadDatabaseRevision VALUES (2209, 74, 1);


People subscribed via source and target branches

to status/vote changes: