piler/util/db-upgrade-1.1.0-vs-1.2.0.sql

13 lines
603 B
MySQL
Raw Normal View History

2015-03-11 12:54:31 +01:00
-- 2015.03.10
alter table archiving_rule add column `body` varchar(128) default null;
alter table retention_rule add column `body` varchar(128) default null;
2015-03-18 15:23:21 +01:00
--drop index entry on archiving_rule;
--drop index entry on retention_rule;
2015-03-11 12:54:31 +01:00
create unique index `entry` on archiving_rule (`domain`,`from`,`to`,`subject`,`body`,`_size`,`size`,`attachment_name`,`attachment_type`,`_attachment_size`,`attachment_size`,`spam`);
create unique index `entry` on retention_rule (`domain`,`from`,`to`,`subject`,`body`,`_size`,`size`,`attachment_name`,`attachment_type`,`_attachment_size`,`attachment_size`,`spam`);