[Collab-qa-commits] r1695 - udd/sql
Lucas Nussbaum
lucas at alioth.debian.org
Tue Feb 23 18:45:22 UTC 2010
Author: lucas
Date: 2010-02-23 18:45:19 +0000 (Tue, 23 Feb 2010)
New Revision: 1695
Modified:
udd/sql/setup.sql
udd/sql/upgrade.sql
Log:
{setup,upgrade}.sql fixes
Modified: udd/sql/setup.sql
===================================================================
--- udd/sql/setup.sql 2010-02-21 11:09:22 UTC (rev 1694)
+++ udd/sql/setup.sql 2010-02-23 18:45:19 UTC (rev 1695)
@@ -253,11 +253,11 @@
(id int REFERENCES archived_bugs, tag text, PRIMARY KEY (id, tag));
CREATE TABLE archived_bugs_blocks
- (id int REFERENCES bugs, blocked int,
+ (id int REFERENCES archived_bugs, blocked int,
PRIMARY KEY(id, blocked));
CREATE TABLE archived_bugs_blockedby
- (id int REFERENCES bugs, blocker int,
+ (id int REFERENCES archived_bugs, blocker int,
PRIMARY KEY(id, blocker));
-- usertags are either for archived or unarchived bugs, so we can't add a
@@ -724,7 +724,7 @@
total_sid_main int, total_sid_contrib int, total_sid_nonfree int,
vcstype_arch int, vcstype_bzr int, vcstype_cvs int, vcstype_darcs int, vcstype_git int, vcstype_hg int, vcstype_mtn int, vcstype_svn int,
format_3native int, format_3quilt int,
- PRIMARY KEY (time)
+ PRIMARY KEY (ts)
);
GRANT SELECT ON history.sources_count TO public;
Modified: udd/sql/upgrade.sql
===================================================================
--- udd/sql/upgrade.sql 2010-02-21 11:09:22 UTC (rev 1694)
+++ udd/sql/upgrade.sql 2010-02-23 18:45:19 UTC (rev 1695)
@@ -296,11 +296,11 @@
PRIMARY KEY(id, blocker));
CREATE TABLE archived_bugs_blocks
- (id int REFERENCES bugs, blocked int,
+ (id int REFERENCES archived_bugs, blocked int,
PRIMARY KEY(id, blocked));
CREATE TABLE archived_bugs_blockedby
- (id int REFERENCES bugs, blocker int,
+ (id int REFERENCES archived_bugs, blocker int,
PRIMARY KEY(id, blocker));
More information about the Collab-qa-commits
mailing list