aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Zotlabs/Update/_1252.php23
-rw-r--r--boot.php2
2 files changed, 24 insertions, 1 deletions
diff --git a/Zotlabs/Update/_1252.php b/Zotlabs/Update/_1252.php
new file mode 100644
index 000000000..97bb58d9d
--- /dev/null
+++ b/Zotlabs/Update/_1252.php
@@ -0,0 +1,23 @@
+<?php
+
+namespace Zotlabs\Update;
+
+class _1252 {
+
+ function run() {
+
+ dbq("START TRANSACTION");
+
+ $r = dbq("DELETE FROM app WHERE app_plugin = 'mail' AND app_system = 1");
+
+ if($r) {
+ dbq("COMMIT");
+ return UPDATE_SUCCESS;
+ }
+
+ dbq("ROLLBACK");
+ return UPDATE_FAILED;
+
+ }
+
+}
diff --git a/boot.php b/boot.php
index a6127865c..a5afc3ad4 100644
--- a/boot.php
+++ b/boot.php
@@ -58,7 +58,7 @@ define ( 'PLATFORM_NAME', 'hubzilla' );
define ( 'STD_VERSION', '7.1' );
define ( 'ZOT_REVISION', '6.0' );
-define ( 'DB_UPDATE_VERSION', 1251 );
+define ( 'DB_UPDATE_VERSION', 1252 );
define ( 'PROJECT_BASE', __DIR__ );