~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to database/schema/patch-121-71-0.sql

  • Committer: Stuart Bishop
  • Date: 2008-07-29 13:54:53 UTC
  • mto: This revision was merged to the branch mainline in revision 7142.
  • Revision ID: stuart.bishop@canonical.com-20080729135453-p2enlowfn6eszj3a
Work in progress

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
    ADD CONSTRAINT person__account__key UNIQUE (account),
27
27
    ADD CONSTRAINT person__name__key UNIQUE (name);
28
28
 
 
29
-- Fix some bugs in the schema that replication picked up. Neither of these
 
30
-- tables is in use yet.
 
31
ALTER TABLE PackageBugSupervisor
 
32
    ADD CONSTRAINT packagebugsupervisor__bug_supervisor__fk
 
33
        FOREIGN KEY (bug_supervisor) REFERENCES Person;
 
34
ALTER SEQUENCE sourcepackagereleasefile_id_seq
 
35
    OWNED BY SourcePackageReleaseFile.id;
 
36
ALTER SEQUENCE binarypackagefile_id_seq OWNED BY BinaryPackageFile.id;
 
37
ALTER SEQUENCE packaging_id_seq OWNED BY Packaging.id;
 
38
ALTER SEQUENCE spokenin_id_seq OWNED BY SpokenIn.id;
 
39
ALTER SEQUENCE productreleasefile_id_seq OWNED BY ProductReleaseFile.id;
 
40
DROP SEQUENCE sourcepackagerelationship_id_seq;
 
41
DROP SEQUENCE branchrelationship_id_seq;
 
42
DROP SEQUENCE distributionrole_id_seq;
 
43
DROP SEQUENCE projectbugtracker_id_seq;
 
44
 
 
45
-- Can't use is_team as a constraint as the result is mutable.
 
46
ALTER TABLE Poll DROP CONSTRAINT is_team;
 
47
 
29
48
INSERT INTO LaunchpadDatabaseRevision VALUES (121, 71, 0);
30
49