From: Stéphane Jacob Date: Tue, 1 Jun 2010 10:04:46 +0000 (+0200) Subject: Removes empty section and adds unique key on section names. X-Git-Tag: xorg/1.0.0~212 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=cf92ff48fd2036b42b3e7434e7081a85a9e2c9f5;p=platal.git Removes empty section and adds unique key on section names. Signed-off-by: Stéphane Jacob --- diff --git a/templates/profile/groups.tpl b/templates/profile/groups.tpl index 541ebb8..116f1f3 100644 --- a/templates/profile/groups.tpl +++ b/templates/profile/groups.tpl @@ -34,7 +34,7 @@ {if $old}ex-{/if}Section @@ -43,7 +43,7 @@ {if $old}ex-{/if}Binet(s) diff --git a/upgrade/account/05_section.sql b/upgrade/account/05_section.sql new file mode 100644 index 0000000..5268d94 --- /dev/null +++ b/upgrade/account/05_section.sql @@ -0,0 +1,4 @@ +DELETE FROM profile_section_enum WHERE text = ''; +ALTER TABLE profile_section_enum ADD UNIQUE KEY (text); + +# vim:set syntax=mysql: