Add device type detect and stats calculation for open/click rate by device type and country

This commit is contained in:
vladimir 2017-03-19 16:47:03 +02:00
parent b6497b0e86
commit 1ba3bce6eb
10 changed files with 176 additions and 15 deletions

View file

@ -0,0 +1,11 @@
# Header section
# Define incrementing schema version number
SET @schema_version = '22';
# Add field device_type to campaign_tracker
ALTER TABLE `campaign_tracker` ADD COLUMN `device_type` varchar(50) DEFAULT NULL AFTER `ip`;
# 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;