diff --git a/tine20/Felamimail/Setup/Update/16.php b/tine20/Felamimail/Setup/Update/16.php index 8ab88086afa..0e0528ca762 100644 --- a/tine20/Felamimail/Setup/Update/16.php +++ b/tine20/Felamimail/Setup/Update/16.php @@ -23,6 +23,7 @@ class Felamimail_Setup_Update_16 extends Setup_Update_Abstract const RELEASE016_UPDATE007 = __CLASS__ . '::update007'; const RELEASE016_UPDATE008 = __CLASS__ . '::update008'; const RELEASE016_UPDATE009 = __CLASS__ . '::update009'; + const RELEASE016_UPDATE010 = __CLASS__ . '::update010'; static protected $_allUpdates = [ @@ -69,6 +70,10 @@ class Felamimail_Setup_Update_16 extends Setup_Update_Abstract self::CLASS_CONST => self::class, self::FUNCTION_CONST => 'update009', ], + self::RELEASE016_UPDATE010 => [ + self::CLASS_CONST => self::class, + self::FUNCTION_CONST => 'update010', + ], ], ]; @@ -332,4 +337,13 @@ public function update009() $this->addApplicationUpdate('Felamimail', '16.9', self::RELEASE016_UPDATE009); } + + public function update010() + { + $this->getDb()->query('UPDATE ' . SQL_TABLE_PREFIX . 'felamimail_account SET creation_time = NOW() WHERE creation_time IS NULL'); + $this->getDb()->query('UPDATE ' . SQL_TABLE_PREFIX . 'felamimail_account SET created_by = "' . + Tinebase_Core::getUser()->getId() . '" WHERE created_by IS NULL'); + + $this->addApplicationUpdate('Felamimail', '16.10', self::RELEASE016_UPDATE010); + } } diff --git a/tine20/Felamimail/Setup/setup.xml b/tine20/Felamimail/Setup/setup.xml index 4e3d8b18267..c285218f87c 100644 --- a/tine20/Felamimail/Setup/setup.xml +++ b/tine20/Felamimail/Setup/setup.xml @@ -1,7 +1,7 @@ Felamimail - 16.9 + 16.10 30 enabled