]> git.mjollnir.org Git - moodle.git/commitdiff
Added patch for bug 1514 to add prefix onto constraints
authormoodler <moodler>
Thu, 15 Jul 2004 05:57:55 +0000 (05:57 +0000)
committermoodler <moodler>
Thu, 15 Jul 2004 05:57:55 +0000 (05:57 +0000)
lib/db/postgres7.sql

index d21c60ce3e4e5d092e499df164c0c414f2da7bf8..9f04818d6d57953f1b9e46d6ac6e468e36698a6f 100644 (file)
@@ -2,7 +2,7 @@ CREATE TABLE prefix_config (
    id SERIAL PRIMARY KEY,
    name varchar(255) NOT NULL default '',
    value text NOT NULL default '',
-   CONSTRAINT config_name_uk UNIQUE (name)
+   CONSTRAINT prefix_config_name_uk UNIQUE (name)
 );
 
 CREATE TABLE prefix_course (
@@ -230,7 +230,7 @@ CREATE TABLE prefix_user (
    htmleditor integer NOT NULL default '1',
    autosubscribe integer NOT NULL default '1',
    timemodified integer NOT NULL default '0',
-   CONSTRAINT user_username_uk UNIQUE (username)
+   CONSTRAINT prefix_user_username_uk UNIQUE (username)
 );
 
 CREATE TABLE prefix_user_admins (