93
DROP TABLE SourcepackageBugAssignment;
94
DROP TABLE ArchArchiveLocationSigner;
95
DROP TABLE BugSubscription;
98
DROP TABLE TranslationEffortPOTFileRelationship;
100
DROP TABLE BranchRelationship;
101
DROP TABLE ProjectBugsystem;
103
DROP TABLE BugSystem;
104
DROP TABLE RosettaPOTranslationSighting;
105
DROP TABLE BugattachmentContent;
106
DROP TABLE BugAttachment;
107
DROP TABLE POTranslationSighting;
109
DROP TABLE POTMsgIDSighting;
110
DROP TABLE POTSubscription;
113
DROP TABLE BugRelationship;
114
DROP TABLE BugMessage;
115
DROP TABLE BugExternalref;
117
DROP TABLE BugInfestation;
118
DROP TABLE ProductBugAssignment;
119
DROP TABLE BugActivity;
120
DROP TABLE BugSystemType;
122
DROP TABLE Packaging;
123
DROP TABLE CodereleaseRelationship;
124
DROP TABLE Coderelease;
125
DROP TABLE OSFileInPackage;
127
DROP TABLE BinarypackageBuildFile;
128
DROP TABLE BinarypackageUpload;
129
DROP TABLE BinarypackageBuild;
130
DROP TABLE Binarypackage;
131
DROP TABLE SourcepackageReleaseFile;
132
DROP TABLE SourcepackageRelationship;
133
DROP TABLE SourcepackageUpload;
134
DROP TABLE SourcepackageRelease;
135
DROP TABLE SourcepackageLabel;
136
DROP TABLE Sourcepackage;
137
DROP TABLE ArchConfigEntry;
138
DROP TABLE ArchConfig;
139
DROP TABLE UpstreamReleaseFile;
140
DROP TABLE UpstreamRelease;
141
DROP TABLE ChangesetFileHash;
142
DROP TABLE ChangesetFile;
143
DROP TABLE ChangesetFileName;
144
DROP TABLE ManifestEntry;
145
DROP TABLE ProductLabel;
148
DROP TABLE Changeset;
149
DROP TABLE BranchLabel;
151
DROP TABLE ArchArchiveLocation;
152
DROP TABLE ArchArchive;
153
DROP TABLE POTranslation;
154
DROP TABLE POTInheritance;
155
DROP TABLE ProjectRelationship;
158
DROP TABLE ProjectTranslationEffortRelationship;
159
DROP TABLE TranslationEffort;
161
DROP TABLE EmailAddress;
162
DROP TABLE TranslationFilter;
164
DROP TABLE ArchUserID;
165
DROP TABLE Membership;
169
DROP TABLE PersonLabel;
170
DROP TABLE TeamParticipation;
172
DROP TABLE DistroArchRelease;
173
DROP TABLE Processor;
174
DROP TABLE ProcessorFamily;
175
DROP TABLE DistroRelease;
176
DROP TABLE Distribution;
177
DROP TABLE LaunchpadFileHash;
178
DROP TABLE LaunchpadFile;
93
DROP TABLE SourcepackageBugAssignment CASCADE;
94
DROP TABLE ArchArchiveLocationSigner CASCADE;
95
DROP TABLE BugSubscription CASCADE;
96
DROP TABLE SpokenIn CASCADE;
97
DROP TABLE Country CASCADE;
98
DROP TABLE TranslationEffortPOTFileRelationship CASCADE;
99
DROP TABLE POComment CASCADE;
100
DROP TABLE BranchRelationship CASCADE;
101
DROP TABLE ProjectBugsystem CASCADE;
102
DROP TABLE BugWatch CASCADE;
103
DROP TABLE BugSystem CASCADE;
104
DROP TABLE RosettaPOTranslationSighting CASCADE;
105
DROP TABLE BugattachmentContent CASCADE;
106
DROP TABLE BugAttachment CASCADE;
107
DROP TABLE POTranslationSighting CASCADE;
108
DROP TABLE POFile CASCADE;
109
DROP TABLE POTMsgIDSighting CASCADE;
110
DROP TABLE POTSubscription CASCADE;
111
DROP TABLE POTFile CASCADE;
112
DROP TABLE License CASCADE;
113
DROP TABLE BugRelationship CASCADE;
114
DROP TABLE BugMessage CASCADE;
115
DROP TABLE BugExternalref CASCADE;
116
DROP TABLE BugLabel CASCADE;
117
DROP TABLE BugInfestation CASCADE;
118
DROP TABLE ProductBugAssignment CASCADE;
119
DROP TABLE BugActivity CASCADE;
120
DROP TABLE BugSystemType CASCADE;
121
DROP TABLE Bug CASCADE;
122
DROP TABLE Packaging CASCADE;
123
DROP TABLE CodereleaseRelationship CASCADE;
124
DROP TABLE Coderelease CASCADE;
125
DROP TABLE OSFileInPackage CASCADE;
126
DROP TABLE OSFile CASCADE;
127
DROP TABLE BinarypackageBuildFile CASCADE;
128
DROP TABLE BinarypackageUpload CASCADE;
129
DROP TABLE BinarypackageBuild CASCADE;
130
DROP TABLE Binarypackage CASCADE;
131
DROP TABLE SourcepackageReleaseFile CASCADE;
132
DROP TABLE SourcepackageRelationship CASCADE;
133
DROP TABLE SourcepackageUpload CASCADE;
134
DROP TABLE SourcepackageRelease CASCADE;
135
DROP TABLE SourcepackageLabel CASCADE;
136
DROP TABLE Sourcepackage CASCADE;
137
DROP TABLE ArchConfigEntry CASCADE;
138
DROP TABLE ArchConfig CASCADE;
139
DROP TABLE UpstreamReleaseFile CASCADE;
140
DROP TABLE UpstreamRelease CASCADE;
141
DROP TABLE ChangesetFileHash CASCADE;
142
DROP TABLE ChangesetFile CASCADE;
143
DROP TABLE ChangesetFileName CASCADE;
144
DROP TABLE ManifestEntry CASCADE;
145
DROP TABLE ProductLabel CASCADE;
146
DROP TABLE Product CASCADE;
147
DROP TABLE Manifest CASCADE;
148
DROP TABLE Changeset CASCADE;
149
DROP TABLE BranchLabel CASCADE;
150
DROP TABLE Branch CASCADE;
151
DROP TABLE ArchArchiveLocation CASCADE;
152
DROP TABLE ArchArchive CASCADE;
153
DROP TABLE POTranslation CASCADE;
154
DROP TABLE POTInheritance CASCADE;
155
DROP TABLE ProjectRelationship CASCADE;
156
DROP TABLE POMsgID CASCADE;
157
DROP TABLE Language CASCADE;
158
DROP TABLE ProjectTranslationEffortRelationship CASCADE;
159
DROP TABLE TranslationEffort CASCADE;
160
DROP TABLE Project CASCADE;
161
DROP TABLE EmailAddress CASCADE;
162
DROP TABLE TranslationFilter CASCADE;
163
DROP TABLE GPGKey CASCADE;
164
DROP TABLE ArchUserID CASCADE;
165
DROP TABLE Membership CASCADE;
166
DROP TABLE WikiName CASCADE;
167
DROP TABLE JabberID CASCADE;
168
DROP TABLE IRCID CASCADE;
169
DROP TABLE PersonLabel CASCADE;
170
DROP TABLE TeamParticipation CASCADE;
171
DROP TABLE Builder CASCADE;
172
DROP TABLE DistroArchRelease CASCADE;
173
DROP TABLE Processor CASCADE;
174
DROP TABLE ProcessorFamily CASCADE;
175
DROP TABLE DistroRelease CASCADE;
176
DROP TABLE Distribution CASCADE;
177
DROP TABLE LaunchpadFileHash CASCADE;
178
DROP TABLE LaunchpadFile CASCADE;
179
DROP TABLE Label CASCADE;
180
DROP TABLE Schema CASCADE;
181
DROP TABLE Person CASCADE;
182
DROP TABLE SourceSource CASCADE;
1733
A table of sources of source code from upstream locations. This might be
1734
CVS, SVN or Arch repositories, or even a tarball of a CVS repository.
1737
CREATE TABLE SourceSource (
1738
id serial PRIMARY KEY,
1740
description text NOT NULL,
1744
/* TODO: The dia file has this column: */
1745
-- cvstarfile integer REFERENCES FileAssociation,
1751
releaseroot text, -- The URL of the directory (usually FTP)
1752
-- where they have releases
1753
releaseverstyle text, -- FIXME: Is this the best way to do an enum?
1754
releasefileglob text,
1755
releaseparentarchbranch integer REFERENCES Branch, -- The arch branch from
1756
-- which these release
1757
-- tarballs may have been
1759
sourcepackage integer REFERENCES Sourcepackage,
1760
branch integer REFERENCES Branch, -- The arch branch this
1761
-- source is imported to
1762
lastsynced timestamp, -- NULL means never, i.e. this is an
1764
syncinterval interval,
1766
/* FIXME: The following columns aren't in dia */
1767
rcstype text NOT NULL, -- Enum, see CHECK
1773
processingapproved boolean NOT NULL DEFAULT false,
1774
syncingapproved boolean NOT NULL DEFAULT false,
1776
/* These columns are used to create new archives/branches in the DB based on
1777
* values imported from .info files */
1778
newarchivename text,
1779
newbranchcategory text,
1780
newbranchbranch text,
1781
newbranchversion text,
1783
/* TODO: Define constraints */
1784
CHECK (rcstype in ('cvs', 'svn', 'package'))