xnetgrp: Disable 'send emails' for new groups.
authorRaphaël Barrois <raphael.barrois@polytechnique.org>
Wed, 24 Apr 2013 22:30:47 +0000 (00:30 +0200)
committerRaphaël Barrois <raphael.barrois@polytechnique.org>
Wed, 24 Apr 2013 22:30:50 +0000 (00:30 +0200)
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
upgrade/1.1.8/02_add_group_disable_global_mails.sql

index f56be94..da19adf 100644 (file)
@@ -1,3 +1,4 @@
-ALTER TABLE groups ADD COLUMN disable_mails int(1) NOT NULL DEFAULT 0;
+ALTER TABLE groups ADD COLUMN disable_mails int(1) NOT NULL DEFAULT 1;
+UPDATE groups SET disable_mails = 0;
 
 -- vim:set syntax=mysql: