Merge remote branch 'origin/platal-1.0.0'
[platal.git] / upgrade / 0.9.4 / 60_watch.sql
CommitLineData
0337d704 1alter table watch_cat add column type enum('basic', 'near', 'often') not null default 'basic';
2update watch_cat set type='often' where frequent=1;
3alter table watch_cat drop column frequent;
4
5alter table watch_cat add mail_sg varchar(80) default NULL after mail;
6update watch_cat set mail_sg = 'Ce camarade a mis sa fiche à jour' where id = 1;
7update watch_cat set mail_sg = 'Ce camarade s\'est inscrit' where id = 2;
8update watch_cat set mail_sg = 'Ce camarade nous a quitté' where id = 3;
9
10insert into watch_cat (id, short, mail, mail_sg, type)
11 values(4, 'Anniversaires', 'Ces camarades fêtent leur anniversaire cette semaine', 'Ce camarade fête son anniversaire cette semaine', 'near');
12replace into watch_sub (uid, cid) select user_id, 4 from auth_user_md5 where perms in ('admin', 'user') and deces=0;
13