Added views for bounced/unsubscribed/complained etc.

This commit is contained in:
Andris Reinman 2016-05-14 12:49:42 +03:00
parent 97803b74ed
commit 408f021c36
9 changed files with 437 additions and 29 deletions

View file

@ -0,0 +1,15 @@
# Header section
# Define incrementing schema version number
SET @schema_version = '11';
-- {{#each tables.campaign}}
# Adds new index for 'status' on campaign messages table
CREATE INDEX status_index ON `{{this}}` (`status`);
-- {{/each}}
# Footer section
LOCK TABLES `settings` WRITE;
INSERT INTO `settings` (`key`, `value`) VALUES('db_schema_version', @schema_version) ON DUPLICATE KEY UPDATE `value`=@schema_version;
UNLOCK TABLES;