7675.1113.1
by Julian Edwards
schema, model and interface |
1 |
-- Copyright 2011 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 |
CREATE TABLE DistroSeriesParent ( |
|
7 |
id serial PRIMARY KEY, |
|
8 |
derived_series integer NOT NULL |
|
9 |
CONSTRAINT distroseriesparent__derivedseries__fk REFERENCES distroseries, |
|
10 |
parent_series integer NOT NULL |
|
11 |
CONSTRAINT distroseriesparent__parentseries__fk REFERENCES distroseries, |
|
12 |
initialized boolean NOT NULL |
|
13 |
);
|
|
14 |
||
15 |
CREATE INDEX distroseriesparent__derivedseries__idx |
|
7675.1113.4
by Julian Edwards
start of tests |
16 |
ON DistroSeriesParent (derived_series); |
7675.1113.1
by Julian Edwards
schema, model and interface |
17 |
CREATE INDEX distroseriesparent__parentseries__idx |
18 |
ON DistroSeriesParent (parent_series); |
|
19 |
||
7675.1113.16
by Julian Edwards
schema patch number |
20 |
INSERT INTO LaunchpadDatabaseRevision VALUES (2208, 61, 0); |