7675.870.1
by Bryce Harrington
Counterintuitively, the DistributionSourcePackage class does not |
1 |
-- Copyright 2010 Canonical Ltd. This software is licensed under the
|
2 |
-- GNU Affero General Public License version 3 (see the file LICENSE).
|
|
3 |
||
4 |
SET client_min_messages=ERROR; |
|
5 |
||
6 |
ALTER TABLE BugTrackerComponent |
|
7 |
ADD COLUMN distribution integer REFERENCES Distribution; |
|
8 |
||
9 |
ALTER TABLE BugTrackerComponent |
|
10 |
ADD COLUMN source_package_name integer REFERENCES SourcePackageName; |
|
11 |
||
12 |
ALTER TABLE BugTrackerComponent |
|
13 |
DROP CONSTRAINT bugtrackercomponent__distro_source_package__key; |
|
14 |
||
15 |
ALTER TABLE BugTrackerComponent |
|
16 |
DROP COLUMN distro_source_package; |
|
17 |
||
7675.870.2
by Bryce Harrington
Review by stub: Needs index, constraint, and comments. |
18 |
ALTER TABLE BugTrackerComponent ADD CONSTRAINT bugtrackercomponent__disto__spn__key |
19 |
UNIQUE (distribution, source_package_name); |
|
20 |
||
21 |
ALTER TABLE BugTrackerComponent ADD CONSTRAINT valid_target |
|
22 |
CHECK (distribution IS NULL = source_package_name IS NULL); |
|
7675.870.1
by Bryce Harrington
Counterintuitively, the DistributionSourcePackage class does not |
23 |
|
7675.870.3
by Bryce Harrington
Set patch version number |
24 |
INSERT INTO LaunchpadDatabaseRevision VALUES(2208, 19, 0); |