X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=upgrade%2Fnewdirectory-0.0.1%2F07_corps.sql;h=dcdf08f129610cc517d2d65dea60dd1e8bb88dbb;hb=304cdf32d7c38afbd381909545021fc44c8a0e05;hp=2fff115fe9e9d00393be698f1f1ba7895faf95ff;hpb=6920f8a6e690e3085922825f5f2b677bd5e62a31;p=platal.git diff --git a/upgrade/newdirectory-0.0.1/07_corps.sql b/upgrade/newdirectory-0.0.1/07_corps.sql index 2fff115..dcdf08f 100644 --- a/upgrade/newdirectory-0.0.1/07_corps.sql +++ b/upgrade/newdirectory-0.0.1/07_corps.sql @@ -4,9 +4,9 @@ DROP TABLE IF EXISTS profile_corps_rank_enum; CREATE TABLE profile_corps ( pid INT(11) NOT NULL, - original_corpsid INT(4) UNSIGNED NOT NULL DEFAULT 0, - current_corpsid INT(4) UNSIGNED NOT NULL DEFAULT 0, - rankid INT(4) UNSIGNED NOT NULL DEFAULT 0, + original_corpsid INT(4) UNSIGNED NOT NULL DEFAULT 1, + current_corpsid INT(4) UNSIGNED NOT NULL DEFAULT 1, + rankid INT(4) UNSIGNED NOT NULL DEFAULT 1, corps_pub ENUM('private', 'ax', 'public') NOT NULL DEFAULT 'private', PRIMARY KEY(pid) ) ENGINE=InnoDB, CHARSET=utf8; @@ -656,8 +656,9 @@ INSERT IGNORE INTO profile_corps_enum (abbreviation, name, still_exists) ("INSEE", "Administrateurs de l'INSEE", 1), ("Off", "Officiers des Armées", 1); -ALTER TABLE watch_profile MODIFY field ENUM('nom', 'freetext', 'mobile', 'nationalite', 'nationalite2', - 'nationalite3', 'nick', 'web', 'networking', 'edus', 'addresses', - 'section', 'binets', 'medals', 'cv', 'jobs', 'photo', 'corps'); +ALTER TABLE watch_profile + MODIFY field ENUM('nom', 'freetext', 'mobile', 'nationality1', 'nationality2', 'nationality3', + 'nick', 'networking', 'edus', 'addresses', 'section', 'binets', 'medals', + 'cv', 'jobs', 'photo', 'corps'); -- vim:set syntax=mysql: