--- /dev/null
+ALTER TABLE watch_profile
+ MODIFY field ENUM('nom', 'freetext', 'mobile', 'nationality1', 'nationality2', 'nationality3',
+ 'nick', 'web','appli1', 'appli2', 'addresses', 'section',
+ 'binets', 'medals', 'cv', 'jobs', 'photo');
+
+# vim:set syntax=mysql:
WHERE `profile_web` <> "";
-- Modify watch_profile to update 'field' from web to networking
-ALTER TABLE `watch_profile`
- MODIFY `field` enum('nom', 'freetext', 'mobile', 'nationalite', 'nick',
- 'web', 'networking', 'appli1', 'appli2', 'addresses',
- 'section', 'binets', 'medals', 'cv', 'jobs', 'photo');
+ALTER TABLE watch_profile
+ MODIFY field ENUM('nom', 'freetext', 'mobile', 'nationality1', 'nationality2', 'nationality3',
+ 'nick', 'web', 'networking', 'appli1', 'appli2', 'addresses', 'section',
+ 'binets', 'medals', 'cv', 'jobs', 'photo');
UPDATE `watch_profile` SET `field` = 'networking' WHERE `field` = 'web';
-ALTER TABLE `watch_profile`
- MODIFY `field` enum('nom', 'freetext', 'mobile', 'nationalite', 'nick',
- 'networking', 'appli1', 'appli2', 'addresses',
- 'section', 'binets', 'medals', 'cv', 'jobs', 'photo');
+ALTER TABLE watch_profile
+ MODIFY field ENUM('nom', 'freetext', 'mobile', 'nationality1', 'nationality2', 'nationality3',
+ 'nick', 'networking', 'appli1', 'appli2', 'addresses', 'section',
+ 'binets', 'medals', 'cv', 'jobs', 'photo');
# vim:set syntax=mysql:
FROM watch_profile
WHERE field = 'appli2';
-ALTER TABLE watch_profile MODIFY field enum('nom', 'freetext', 'mobile', 'nationalite', 'nationalite2',
- 'nationalite3', 'nick', 'web', 'networking', 'appli1', 'appli2',
- 'edus', 'addresses', 'section', 'binets', 'medals', 'cv', 'jobs',
- 'photo');
+ALTER TABLE watch_profile
+ MODIFY field ENUM('nom', 'freetext', 'mobile', 'nationality1', 'nationality2', 'nationality3',
+ 'nick', 'networking', 'appli1', 'appli2', 'edus', 'addresses', 'section',
+ 'binets', 'medals', 'cv', 'jobs', 'photo');
UPDATE watch_profile SET field = 'edus' WHERE field = 'appli1';
DELETE FROM watch_profile WHERE field = 'appli2';
-ALTER TABLE watch_profile MODIFY field enum('nom', 'freetext', 'mobile', 'nationalite', 'nationalite2',
- 'nationalite3', 'nick', 'web', 'networking', 'edus', 'addresses',
- 'section', 'binets', 'medals', 'cv', 'jobs', 'photo');
+ALTER TABLE watch_profile
+ MODIFY field ENUM('nom', 'freetext', 'mobile', 'nationality1', 'nationality2', 'nationality3',
+ 'nick', 'networking', 'edus', 'addresses', 'section', 'binets', 'medals',
+ 'cv', 'jobs', 'photo');
# vim:set syntax=mysql:
("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:
-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', 'corps');
+ALTER TABLE watch_profile
+ MODIFY field ENUM('search_names', 'nom', 'freetext', 'mobile', 'nationality1', 'nationality2', 'nationality3',
+ 'nick', 'networking', 'edus', 'addresses', 'section', 'binets', 'medals',
+ 'cv', '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', 'corps');
+ALTER TABLE watch_profile
+ MODIFY field ENUM('search_names', 'freetext', 'mobile', 'nationality1', 'nationality2', 'nationality3',
+ 'nick', 'networking', 'edus', 'addresses', 'section', 'binets', 'medals',
+ 'cv', 'jobs', 'photo', 'corps');
# vim:set syntax=mysql: