aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Update/_1222.php
diff options
context:
space:
mode:
Diffstat (limited to 'Zotlabs/Update/_1222.php')
-rw-r--r--Zotlabs/Update/_1222.php28
1 files changed, 28 insertions, 0 deletions
diff --git a/Zotlabs/Update/_1222.php b/Zotlabs/Update/_1222.php
new file mode 100644
index 000000000..579025457
--- /dev/null
+++ b/Zotlabs/Update/_1222.php
@@ -0,0 +1,28 @@
+<?php
+
+namespace Zotlabs\Update;
+
+use Zotlabs\Lib\Apps;
+
+class _1222 {
+
+ function run() {
+
+ q("START TRANSACTION");
+
+ $r1 = q("DELETE FROM app WHERE app_name = 'Grid' and app_system = 1");
+
+ if($r1) {
+ q("COMMIT");
+
+ Apps::import_system_apps();
+
+ return UPDATE_SUCCESS;
+ }
+
+ q("ROLLBACK");
+ return UPDATE_FAILED;
+
+ }
+
+}