Permalink
Browse files

Fixes for new postgres database creation

  • Loading branch information...
1 parent ad95a28 commit 55bcf883c363d4242e0110a215468735c2ff2219 paca70 committed Sep 24, 2004
Showing with 11 additions and 11 deletions.
  1. +1 −1 mod/quiz/db/postgres7.sql
  2. +1 −1 mod/wiki/db/postgres7.sql
  3. +9 −9 mod/workshop/db/postgres7.sql
@@ -256,7 +256,7 @@ CREATE TABLE prefix_quiz_attemptonlast_datasets (
category INT8 NOT NULL default '0',
userid INT8 NOT NULL default '0',
datasetnumber INT8 NOT NULL default '0',
- CONSTRAINT category UNIQUE (category,userid)
+ CONSTRAINT prefix_quiz_category_userid_unique UNIQUE (category,userid)
);
CREATE TABLE prefix_quiz_dataset_definitions (
@@ -56,6 +56,6 @@ CREATE TABLE prefix_wiki_pages (
) ;
ALTER TABLE ONLY prefix_wiki_pages
- ADD CONSTRAINT id PRIMARY KEY (pagename, version, wiki);
+ ADD CONSTRAINT prefix_wiki_pages_pagename_version_wiki_unique PRIMARY KEY (pagename, version, wiki);
CREATE INDEX prefix_wiki_pages_pagename_version_wiki_idx ON prefix_wiki_pages (pagename, version, wiki) ;
@@ -26,7 +26,7 @@ CREATE TABLE prefix_workshop (
overallocation INT NOT NULL default '0',
timemodified INT8 NOT NULL default '0',
teacherweight INT NOT NULL default '1',
- showleaguetable INT4 NOT NULL default '0',
+ showleaguetable INT4 NOT NULL default '0'
);
# --------------------------------------------------------
@@ -121,13 +121,13 @@ CREATE TABLE prefix_workshop_comments (
comments text NOT NULL default ''
);
-INSERT INTO `prefix_log_display` VALUES ('workshop', 'assessments', 'workshop', 'name');
-INSERT INTO `prefix_log_display` VALUES ('workshop', 'close', 'workshop', 'name');
-INSERT INTO `prefix_log_display` VALUES ('workshop', 'display', 'workshop', 'name');
-INSERT INTO `prefix_log_display` VALUES ('workshop', 'resubmit', 'workshop', 'name');
-INSERT INTO `prefix_log_display` VALUES ('workshop', 'set up', 'workshop', 'name');
-INSERT INTO `prefix_log_display` VALUES ('workshop', 'submissions', 'workshop', 'name');
-INSERT INTO `prefix_log_display` VALUES ('workshop', 'view', 'workshop', 'name');
-INSERT INTO `prefix_log_display` VALUES ('workshop', 'update', 'workshop', 'name');
+INSERT INTO prefix_log_display VALUES ('workshop', 'assessments', 'workshop', 'name');
+INSERT INTO prefix_log_display VALUES ('workshop', 'close', 'workshop', 'name');
+INSERT INTO prefix_log_display VALUES ('workshop', 'display', 'workshop', 'name');
+INSERT INTO prefix_log_display VALUES ('workshop', 'resubmit', 'workshop', 'name');
+INSERT INTO prefix_log_display VALUES ('workshop', 'set up', 'workshop', 'name');
+INSERT INTO prefix_log_display VALUES ('workshop', 'submissions', 'workshop', 'name');
+INSERT INTO prefix_log_display VALUES ('workshop', 'view', 'workshop', 'name');
+INSERT INTO prefix_log_display VALUES ('workshop', 'update', 'workshop', 'name');
COMMIT;

0 comments on commit 55bcf88

Please sign in to comment.