From: Stéphane Jacob Date: Sat, 11 Apr 2009 23:28:58 +0000 (+0200) Subject: Adds corps to watch_profile. X-Git-Tag: xorg/1.0.0~332^2~313^2~16 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=ef7d4b7bb37c3dfde2b57163c3540c22d13c92b1;p=platal.git Adds corps to watch_profile. --- diff --git a/upgrade/newdirectory-0.0.1/07_corps b/upgrade/newdirectory-0.0.1/07_corps index 4e5eae2..f0b52d9 100644 --- a/upgrade/newdirectory-0.0.1/07_corps +++ b/upgrade/newdirectory-0.0.1/07_corps @@ -41,4 +41,9 @@ UPDATE profile_corps_enum DELETE FROM profile_corps_enum WHERE name = "Ancien élève étranger"; + +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'); + -- vim:set syntax=mysql: diff --git a/upgrade/newdirectory-0.0.1/14_watchnames.sql b/upgrade/newdirectory-0.0.1/14_watchnames.sql index 8baebda..04b3483 100644 --- a/upgrade/newdirectory-0.0.1/14_watchnames.sql +++ b/upgrade/newdirectory-0.0.1/14_watchnames.sql @@ -1,13 +1,13 @@ ALTER TABLE watch_profile MODIFY field enum('search_names', 'nom', 'freetext', 'mobile', 'nationalite', 'nationalite2', 'nationalite3', 'nick', 'web', 'networking', 'edus', 'addresses', 'section', 'binets', 'medals', 'cv', - 'jobs', 'photo'); + 'jobs', 'photo', 'corps'); UPDATE watch_profile SET field = 'search_names' WHERE field = 'nom' OR field = 'nick'; ALTER TABLE watch_profile MODIFY field enum('search_names', 'freetext', 'mobile', 'nationalite', 'nationalite2', 'nationalite3', 'web', 'networking','edus', 'addresses', 'section', 'binets', 'medals', 'cv', 'jobs', - 'photo'); + 'photo', 'corps'); # vim:set syntax=mysql: