Merge branch 'pr453'

This commit is contained in:
Tomas Bures 2018-08-05 17:44:58 +05:30
commit ee0d148427
11 changed files with 53 additions and 17 deletions

View file

@ -1,6 +1,6 @@
# Header section
# Define incrementing schema version number
SET @schema_version = '31';
SET @schema_version = '32';
# Set default X-Mailer header value
LOCK TABLES `settings` WRITE;

View file

@ -0,0 +1,13 @@
# Header section
# Define incrementing schema version number
SET @schema_version = '33';
# Adds new column 'unsubscribe' to campaign table.
ALTER TABLE campaigns ADD COLUMN `unsubscribe` VARCHAR(255) NOT NULL DEFAULT '' AFTER `subject`;
# Footer section. Updates schema version in settings
LOCK TABLES `settings` WRITE;
/*!40000 ALTER TABLE `settings` DISABLE KEYS */;
INSERT INTO `settings` (`key`, `value`) VALUES('db_schema_version', @schema_version) ON DUPLICATE KEY UPDATE `value`=@schema_version;
/*!40000 ALTER TABLE `settings` ENABLE KEYS */;
UNLOCK TABLES;