X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;ds=sidebyside;f=upgrade%2Fnewdirectory-0.0.1%2F06_education.sql;h=865d888b12d7a0b5050b70baea9190773c2f37f8;hb=9891bd15f772caef0c199a98f036e976bf4ab94a;hp=be4f85ea986b59ab6ac50de0c5c6f33380b5fe86;hpb=5818ad2405cfb20b4cb906711040ab6681f3209b;p=platal.git diff --git a/upgrade/newdirectory-0.0.1/06_education.sql b/upgrade/newdirectory-0.0.1/06_education.sql index be4f85e..865d888 100644 --- a/upgrade/newdirectory-0.0.1/06_education.sql +++ b/upgrade/newdirectory-0.0.1/06_education.sql @@ -11,8 +11,7 @@ CREATE TABLE IF NOT EXISTS profile_education_degree_enum ( abbreviation VARCHAR(255) DEFAULT '' NOT NULL, level TINYINT (1) UNSIGNED DEFAULT 0 NOT NULL, PRIMARY KEY(id), - UNIQUE KEY(degree), - UNIQUE KEY(abbreviation) + UNIQUE KEY(degree) ) CHARSET=utf8; CREATE TABLE IF NOT EXISTS profile_education_degree ( @@ -28,8 +27,7 @@ CREATE TABLE IF NOT EXISTS profile_education_enum ( url VARCHAR(255) DEFAULT NULL, country CHAR(2) NOT NULL DEFAULT 'FR', PRIMARY KEY(id), - UNIQUE KEY(name), - UNIQUE KEY(IF(abbreviation = '', name, abbreviation)) + UNIQUE KEY(name) ) CHARSET=utf8; CREATE TABLE IF NOT EXISTS profile_education (