mailtrain/setup/sql/upgrade-00017.sql

12 lines
403 B
MySQL
Raw Normal View History

2016-08-29 10:57:27 +00:00
# Header section
# Define incrementing schema version number
SET @schema_version = '17';
# Add template field for group elements
ALTER TABLE `custom_fields` ADD COLUMN `group_template` text AFTER `group`;
# 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;