0010752: update script for android 5.0 / lollipop devices
authorjevers <j.evers@metaways.de>
Fri, 6 Feb 2015 12:35:24 +0000 (13:35 +0100)
committerPhilipp Schüle <p.schuele@metaways.de>
Wed, 18 Feb 2015 15:33:52 +0000 (16:33 +0100)
* delete Android 5 user agent entries from tine20_acsync_device

Change-Id: Ie3b1a8c784ed25baffb13d75f04c90b960a37a83
Reviewed-on: http://gerrit.tine20.com/customers/1618
Tested-by: Jenkins CI (http://ci.tine20.com/)
Reviewed-by: Philipp Schüle <p.schuele@metaways.de>
Tested-by: Philipp Schüle <p.schuele@metaways.de>
tine20/ActiveSync/Setup/Update/Release8.php [new file with mode: 0644]
tine20/ActiveSync/Setup/setup.xml

diff --git a/tine20/ActiveSync/Setup/Update/Release8.php b/tine20/ActiveSync/Setup/Update/Release8.php
new file mode 100644 (file)
index 0000000..5fd136c
--- /dev/null
@@ -0,0 +1,35 @@
+<?php
+/**
+ * Tine 2.0
+ *
+ * @package     ActiveSync
+ * @subpackage  Setup
+ * @license     http://www.gnu.org/licenses/agpl.html AGPL Version 3
+ * @copyright   Copyright (c) 2013 Metaways Infosystems GmbH (http://www.metaways.de)
+ * @author      Jan Evers <j.evers@metaways.de>
+ */
+
+/**
+ * updates for major release 8
+ *
+ * @package     ActiveSync
+ * @subpackage  Setup
+ */
+class ActiveSync_Setup_Update_Release8 extends Setup_Update_Abstract
+{
+    /**
+     * update to 8.1
+     *
+     * @see 0010752: update script for android 5.0 / lollipop devices
+     *
+     * @return void
+     */
+    public function update_0()
+    {
+        $from = SQL_TABLE_PREFIX . 'acsync_device';
+        $where = array($this->_db->quoteIdentifier('useragent') . ' LIKE ?' => 'Android/5%');
+        $this->_db->delete($from, $where);
+
+        $this->setApplicationVersion('ActiveSync', '8.1');
+    }
+}
index b1b2f7a..51b2238 100644 (file)
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="utf-8"?>
 <application>
     <name>ActiveSync</name>
-    <version>8.0</version>
+    <version>8.1</version>
     <order>90</order>
     <depends>
         <application>Tinebase</application>