Add device type detect and stats calculation for open/click rate by device type and country
This commit is contained in:
parent
b6497b0e86
commit
1ba3bce6eb
10 changed files with 176 additions and 15 deletions
11
setup/sql/upgrade-00022.sql
Normal file
11
setup/sql/upgrade-00022.sql
Normal 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;
|
Loading…
Add table
Add a link
Reference in a new issue