Merge lp:~cjwatson/launchpad/db-buildinfo into lp:launchpad/db-devel

Proposed by Colin Watson
Status: Merged
Merged at revision: 13658
Proposed branch: lp:~cjwatson/launchpad/db-buildinfo
Merge into: lp:launchpad/db-devel
Diff against target: 13 lines (+9/-0)
1 file modified
database/schema/patch-2209-82-0.sql (+9/-0)
To merge this branch: bzr merge lp:~cjwatson/launchpad/db-buildinfo
Reviewer Review Type Date Requested Status
William Grant db Approve
Review via email: mp+321262@code.launchpad.net

Commit message

Add SourcePackageRelease.buildinfo and BinaryPackageBuild.buildinfo.

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

Actually you probably also need to fix perms for librariangc.

Revision history for this message
Colin Watson (cjwatson) wrote :

As discussed on IRC, librariangc is OK (it already has SELECT permissions on both binarypackagebuild and sourcepackagerelease for UnreferencedLibraryFileAliasPruner).

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added file 'database/schema/patch-2209-82-0.sql'
2--- database/schema/patch-2209-82-0.sql 1970-01-01 00:00:00 +0000
3+++ database/schema/patch-2209-82-0.sql 2017-03-29 09:28:41 +0000
4@@ -0,0 +1,9 @@
5+-- Copyright 2017 Canonical Ltd. This software is licensed under the
6+-- GNU Affero General Public License version 3 (see the file LICENSE).
7+
8+SET client_min_messages=ERROR;
9+
10+ALTER TABLE SourcePackageRelease ADD COLUMN buildinfo integer REFERENCES libraryfilealias;
11+ALTER TABLE BinaryPackageBuild ADD COLUMN buildinfo integer REFERENCES libraryfilealias;
12+
13+INSERT INTO LaunchpadDatabaseRevision VALUES (2209, 82, 0);

Subscribers

People subscribed via source and target branches

to status/vote changes: