Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixes for new postgresql database creation

  • Loading branch information...
commit 8c589739b6bb37afb83c4ac24c5e491c09d3287c 1 parent 8a9d7a9
paca70 authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  mod/quiz/db/postgres7.sql
  2. +1 −1  mod/wiki/db/postgres7.sql
View
2  mod/quiz/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_attemptonlast_datasets_category_userid UNIQUE (category,userid)
);
CREATE TABLE prefix_quiz_dataset_definitions (
View
2  mod/wiki/db/postgres7.sql
@@ -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_id PRIMARY KEY (pagename, version, wiki);
CREATE INDEX prefix_wiki_pages_pagename_version_wiki_idx ON prefix_wiki_pages (pagename, version, wiki) ;
Please sign in to comment.
Something went wrong with that request. Please try again.