1 | |
---|
2 | ALTER TABLE group_extra_revision |
---|
3 | DROP CONSTRAINT group_extra_revision_pkey; |
---|
4 | |
---|
5 | ALTER TABLE group_revision |
---|
6 | DROP CONSTRAINT group_revision_pkey; |
---|
7 | |
---|
8 | ALTER TABLE package_group_revision |
---|
9 | DROP CONSTRAINT package_group_revision_pkey; |
---|
10 | |
---|
11 | ALTER TABLE group_extra |
---|
12 | DROP CONSTRAINT group_extra_revision_fkey; |
---|
13 | |
---|
14 | ALTER TABLE group_extra_revision |
---|
15 | DROP CONSTRAINT group_extra_revision_continuity_id_fkey; |
---|
16 | |
---|
17 | ALTER TABLE group_revision |
---|
18 | DROP CONSTRAINT group_revision_name_key; |
---|
19 | |
---|
20 | ALTER TABLE package_group |
---|
21 | DROP CONSTRAINT package_group_revision_fkey; |
---|
22 | |
---|
23 | ALTER TABLE package_group_revision |
---|
24 | DROP CONSTRAINT package_group_revision_continuity_id_fkey; |
---|
25 | |
---|
26 | ALTER TABLE authorization_group_role |
---|
27 | DROP COLUMN id; |
---|
28 | |
---|
29 | ALTER TABLE changeset |
---|
30 | DROP COLUMN status; |
---|
31 | |
---|
32 | update package_group_revision set continuity_id = id; |
---|
33 | |
---|
34 | ALTER TABLE group_extra_revision |
---|
35 | ALTER COLUMN revision_id SET NOT NULL; |
---|
36 | |
---|
37 | ALTER TABLE group_revision |
---|
38 | ALTER COLUMN revision_id SET NOT NULL; |
---|
39 | |
---|
40 | ALTER TABLE harvesting_job |
---|
41 | ALTER COLUMN status SET NOT NULL; |
---|
42 | |
---|
43 | ALTER TABLE migrate_version |
---|
44 | ALTER COLUMN repository_id TYPE character varying(250) /* TYPE change - table: migrate_version original: character varying(255) new: character varying(250) */; |
---|
45 | |
---|
46 | ALTER TABLE package |
---|
47 | ALTER COLUMN license_id TYPE text /* TYPE change - table: package original: character varying(100) new: text */; |
---|
48 | |
---|
49 | ALTER TABLE package_group_revision |
---|
50 | ALTER COLUMN revision_id SET NOT NULL; |
---|
51 | |
---|
52 | ALTER TABLE package_revision |
---|
53 | ALTER COLUMN license_id TYPE text /* TYPE change - table: package_revision original: character varying(100) new: text */; |
---|
54 | |
---|
55 | ALTER TABLE rating |
---|
56 | ALTER COLUMN rating TYPE double precision /* TYPE change - table: rating original: real new: double precision */; |
---|
57 | |
---|
58 | ALTER TABLE group_extra_revision |
---|
59 | ADD CONSTRAINT group_extra_revision_pkey PRIMARY KEY (id, revision_id); |
---|
60 | |
---|
61 | ALTER TABLE group_revision |
---|
62 | ADD CONSTRAINT group_revision_pkey PRIMARY KEY (id, revision_id); |
---|
63 | |
---|
64 | ALTER TABLE package_group_revision |
---|
65 | ADD CONSTRAINT package_group_revision_pkey PRIMARY KEY (id, revision_id); |
---|
66 | |
---|
67 | ALTER TABLE group_extra |
---|
68 | ADD CONSTRAINT group_extra_revision_id_fkey FOREIGN KEY (revision_id) REFERENCES revision(id); |
---|
69 | |
---|
70 | ALTER TABLE group_extra_revision |
---|
71 | ADD CONSTRAINT group_extra_revision_continuity_id_fkey FOREIGN KEY (continuity_id) REFERENCES group_extra(id); |
---|
72 | |
---|
73 | ALTER TABLE group_revision |
---|
74 | ADD CONSTRAINT group_revision_continuity_id_fkey FOREIGN KEY (continuity_id) REFERENCES "group"(id); |
---|
75 | |
---|
76 | ALTER TABLE harvested_document |
---|
77 | ADD CONSTRAINT harvested_document_package_id_fkey FOREIGN KEY (package_id) REFERENCES package(id); |
---|
78 | |
---|
79 | ALTER TABLE harvested_document |
---|
80 | ADD CONSTRAINT harvested_document_source_id_fkey FOREIGN KEY (source_id) REFERENCES harvest_source(id); |
---|
81 | |
---|
82 | ALTER TABLE package_group |
---|
83 | ADD CONSTRAINT package_group_revision_id_fkey FOREIGN KEY (revision_id) REFERENCES revision(id); |
---|
84 | |
---|
85 | ALTER TABLE package_group_revision |
---|
86 | ADD CONSTRAINT package_group_revision_continuity_id_fkey FOREIGN KEY (continuity_id) REFERENCES package_group(id); |
---|
87 | |
---|
88 | ALTER TABLE user_object_role |
---|
89 | ADD CONSTRAINT user_object_role_authorized_group_id_fkey FOREIGN KEY (authorized_group_id) REFERENCES authorization_group(id); |
---|