diff --git a/src/includes/psmconfig.inc.php b/src/includes/psmconfig.inc.php index 51753238..f4435097 100644 --- a/src/includes/psmconfig.inc.php +++ b/src/includes/psmconfig.inc.php @@ -29,7 +29,7 @@ /** * Current PSM version */ -define('PSM_VERSION', '3.3.1'); +define('PSM_VERSION', '3.4.0'); /** * URL to check for updates. Will not be checked if turned off on config page. diff --git a/src/psm/Util/Install/Installer.php b/src/psm/Util/Install/Installer.php index cfc328dc..ca5debaa 100644 --- a/src/psm/Util/Install/Installer.php +++ b/src/psm/Util/Install/Installer.php @@ -313,6 +313,9 @@ class Installer { if (version_compare($version_from, '3.3.0', '<')) { $this->upgrade330(); } + if (version_compare($version_from, '3.4.0', '<')) { + $this->upgrade340(); + } psm_update_conf('version', $version_to); } @@ -539,6 +542,16 @@ class Installer { if (psm_get_conf('sms_gateway') == 'mollie') { psm_update_conf('sms_gateway', 'messagebird'); } - } + + /** + * Upgrade for v3.4.0 release + */ + protected function upgrade340() { + $queries = array(); + $queries[] = "INSERT INTO `".PSM_DB_PREFIX."config` (`key`, `value`) VALUES ('combine_notifications', '1');"; + $this->execSQL($queries); + $this->log('Combined notifications enabled. Check out the config page for more info.'); + + } }