fixes update scripts for Addressbook and Sales
authorPhilipp Schüle <p.schuele@metaways.de>
Mon, 14 Aug 2017 11:30:02 +0000 (13:30 +0200)
committerPhilipp Schüle <p.schuele@metaways.de>
Mon, 14 Aug 2017 12:29:57 +0000 (14:29 +0200)
* adjusting for 2017.11-develop / App Versions 11.*

see 0013390: container_id update script problems
https://forge.tine20.org/view.php?id=13390

Change-Id: I18625ceb574ce9a845f37f42d4925933318ede04
Reviewed-on: http://gerrit.tine20.com/customers/5463
Reviewed-by: Paul Mehrer <p.mehrer@metaways.de>
Tested-by: Jenkins CI (http://ci.tine20.com/) <tine20-jenkins@metaways.de>
tine20/Addressbook/Setup/Update/Release10.php
tine20/Addressbook/Setup/Update/Release11.php [new file with mode: 0644]
tine20/Addressbook/Setup/setup.xml
tine20/Sales/Setup/Update/Release10.php

index be30065..7837da5 100644 (file)
@@ -124,7 +124,7 @@ class Addressbook_Setup_Update_Release10 extends Setup_Update_Abstract
         $this->setApplicationVersion('Addressbook', '10.7');
     }
 
-    public function update_6()
+    public function update_7()
     {
         $this->setApplicationVersion('Addressbook', '11.0');
     }
diff --git a/tine20/Addressbook/Setup/Update/Release11.php b/tine20/Addressbook/Setup/Update/Release11.php
new file mode 100644 (file)
index 0000000..a8be9ff
--- /dev/null
@@ -0,0 +1,24 @@
+<?php
+
+/**
+ * Tine 2.0
+ *
+ * @package     Addressbook
+ * @subpackage  Setup
+ * @license     http://www.gnu.org/licenses/agpl.html AGPL3
+ * @copyright   Copyright (c) 2014-2017 Metaways Infosystems GmbH (http://www.metaways.de)
+ * @author      Philipp Schüle <p.schuele@metaways.de>
+ */
+class Addressbook_Setup_Update_Release11 extends Setup_Update_Abstract
+{
+    /**
+     * @return void
+     */
+    public function update_0()
+    {
+        $release10 = new Addressbook_Setup_Update_Release10($this->_backend);
+        $release10->update_6();
+
+        $this->setApplicationVersion('Addressbook', '11.1');
+    }
+}
index 4b0851f..922f141 100644 (file)
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="utf-8"?>
 <application>
     <name>Addressbook</name>
-    <version>11.0</version>
+    <version>11.1</version>
     <order>10</order>
     <depends>
         <application>Admin</application>
index d159ad7..e6a9128 100644 (file)
@@ -224,7 +224,7 @@ class Sales_Setup_Update_Release10 extends Setup_Update_Abstract
     /**
      * update to 11.0
      */
-    public function update_9()
+    public function update_10()
     {
         $this->setApplicationVersion('Sales', '11.0');
     }