From: Roland Häder Date: Thu, 11 Aug 2011 17:19:03 +0000 (+0000) Subject: 'assigned_admin' and 'userid' can now be NULL X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=98c6ed3e1dacc19134ba4a01000ee6a11bed31f2;p=mailer.git 'assigned_admin' and 'userid' can now be NULL --- diff --git a/inc/extensions/ext-task.php b/inc/extensions/ext-task.php index 73fa717f61..63f7cdb85b 100644 --- a/inc/extensions/ext-task.php +++ b/inc/extensions/ext-task.php @@ -41,10 +41,10 @@ if (!defined('__SECURITY')) { } // END - if // Version number -setThisExtensionVersion('0.3.2'); +setThisExtensionVersion('0.3.3'); // Version history array (add more with , '0.0.1' and so on) -setExtensionVersionHistory(array('0.0.0', '0.0.1', '0.0.2', '0.0.3', '0.0.4', '0.0.5', '0.0.6', '0.0.7', '0.0.8', '0.0.9', '0.1.0', '0.1.1', '0.1.2', '0.1.3', '0.1.4', '0.1.5', '0.1.6', '0.1.7', '0.1.8', '0.1.9', '0.2.0', '0.2.1', '0.2.2', '0.2.3', '0.2.4', '0.2.5', '0.2.6', '0.2.7', '0.2.8', '0.2.9', '0.3.0', '0.3.1', '0.3.2')); +setExtensionVersionHistory(array('0.0.0', '0.0.1', '0.0.2', '0.0.3', '0.0.4', '0.0.5', '0.0.6', '0.0.7', '0.0.8', '0.0.9', '0.1.0', '0.1.1', '0.1.2', '0.1.3', '0.1.4', '0.1.5', '0.1.6', '0.1.7', '0.1.8', '0.1.9', '0.2.0', '0.2.1', '0.2.2', '0.2.3', '0.2.4', '0.2.5', '0.2.6', '0.2.7', '0.2.8', '0.2.9', '0.3.0', '0.3.1', '0.3.2', '0.3.3')); // Keep this extension always active! setExtensionAlwaysActive('Y'); @@ -241,6 +241,16 @@ switch (getExtensionMode()) { // Update notes (these will be set as task text!) setExtensionUpdateNotes("Hängt nun von ext-user ab."); break; + + case '0.3.3': // SQL queries for v0.3.3 + addExtensionSql('ALTER TABLE `{?_MYSQL_PREFIX?}_task_system` CHANGE `assigned_admin` `assigned_admin` BIGINT(20) NULL DEFAULT NULL'); + addExtensionSql('ALTER TABLE `{?_MYSQL_PREFIX?}_task_system` CHANGE `userid` `userid` BIGINT(20) NULL DEFAULT NULL'); + addExtensionSql('UPDATE `{?_MYSQL_PREFIX?}_task_system` SET `assigned_admin`=NULL WHERE `assigned_admin`=0'); + addExtensionSql('UPDATE `{?_MYSQL_PREFIX?}_task_system` SET `userid`=NULL WHERE `userid`=0'); + + // Update notes (these will be set as task text!) + setExtensionUpdateNotes("Zugewiesener Admin und User-Id dürfen nun NULL sein."); + break; } // END - switch break;