From: Stéphane Jacob Date: Sat, 20 Dec 2008 16:53:49 +0000 (+0100) Subject: Fixes education sql scripts. X-Git-Tag: xorg/1.0.0~332^2~344^2~58 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=483cbf2c8e0c1cf15aa7082b3031129c701f85f0;p=platal.git Fixes education sql scripts. --- 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 ( diff --git a/upgrade/newdirectory-0.0.1/09_education.sql b/upgrade/newdirectory-0.0.1/09_education.sql index 74de743..abf3ba6 100644 --- a/upgrade/newdirectory-0.0.1/09_education.sql +++ b/upgrade/newdirectory-0.0.1/09_education.sql @@ -522,7 +522,7 @@ INSERT INTO profile_education_enum (name, url, country, abbreviation) ('Cleveland State University', 'http://www.csuohio.edu/', 'US', 'CSU'), ('Centre de Perfectionnement aux Affaires du Nord', '', 'FR', 'CPA du Nord'), ('Centre de Perfectionnement aux Affaires de Lyon', '', '', 'CPA de Lyon'), - ('Amherst College', 'http://www.amherst.edu/', 'US', '') + ('Amherst College', 'http://www.amherst.edu/', 'US', ''), ('Ottawa University', 'http://www.ottawa.edu/', 'US', 'OU'), ('Indiana University', 'http://www.indiana.edu/', 'US', ''), ('University of Notre Dame du Lac', 'http://www.nd.edu/', 'US', 'Notre Dame'),