container table version has increased
authorPhilipp Schüle <p.schuele@metaways.de>
Fri, 18 Nov 2016 08:52:03 +0000 (09:52 +0100)
committerPhilipp Schüle <p.schuele@metaways.de>
Fri, 18 Nov 2016 11:07:41 +0000 (12:07 +0100)
... by "Allow to  sort containers manually"
cd9c6863ce260a9efb7affcb9e75e01ee8abb76a

adds an info log when new col is added

Change-Id: I72ab00dded5e99470110e7f139c8b09a3aad323a
Reviewed-on: http://gerrit.tine20.com/customers/3835
Tested-by: Jenkins CI (http://ci.tine20.com/)
Reviewed-by: Philipp Schüle <p.schuele@metaways.de>
tine20/Setup/Backend/Mysql.php
tine20/Tinebase/Setup/Update/Release9.php
tine20/Tinebase/Setup/setup.xml

index d6c6d78..bf271af 100644 (file)
@@ -202,6 +202,9 @@ class Setup_Backend_Mysql extends Setup_Backend_Abstract
      */    
     public function addCol($_tableName, Setup_Backend_Schema_Field_Abstract $_declaration, $_position = NULL)
     {
+        if (Tinebase_Core::isLogLevel(Zend_Log::INFO)) Tinebase_Core::getLogger()->info(__METHOD__ . '::' . __LINE__
+            . ' Add new column to table ' . $_tableName);
+
         $statement = "ALTER TABLE `" . SQL_TABLE_PREFIX . $_tableName . "` ADD COLUMN " ;
         
         $statement .= $this->getFieldDeclarations($_declaration);
index 1259460..143dfdb 100644 (file)
@@ -239,7 +239,7 @@ class Tinebase_Setup_Update_Release9 extends Setup_Update_Abstract
      */
     public function update_8()
     {
-        if ($this->getTableVersion('container') < 10) {
+        if ($this->getTableVersion('container') < 11) {
             $declaration = new Setup_Backend_Schema_Field_Xml(
             '<field>
                 <name>owner_id</name>
@@ -260,11 +260,9 @@ class Tinebase_Setup_Update_Release9 extends Setup_Update_Abstract
             ');
 
             $this->_backend->addIndex('container', $declaration);
-            $this->setTableVersion('relations', '8');
+            $this->setTableVersion('container', 11);
         }
-        $this->setTableVersion('container', '10');
 
-        //Tinebase_Core::getCache()->clean();
         $this->_setContainerOwners();
 
         $this->setApplicationVersion('Tinebase', '9.9');
index 24fe489..c80a004 100644 (file)
         </table>
         <table>
             <name>container</name>
-            <version>10</version>
+            <version>11</version>
             <declaration>
                 <field>
                     <name>id</name>