aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Update/_1259.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2023-11-09 20:09:49 +0000
committerMario <mario@mariovavti.com>2023-11-09 20:09:49 +0000
commitaad6042d425c390ebc3eed1b77636c854df739cc (patch)
treeb17ab7cc826f4c9a3afed1d4fd6ef37a781cf618 /Zotlabs/Update/_1259.php
parent85d8c1a97eec7fe40c6ea4b9ee895897d54a38c6 (diff)
downloadvolse-hubzilla-aad6042d425c390ebc3eed1b77636c854df739cc.tar.gz
volse-hubzilla-aad6042d425c390ebc3eed1b77636c854df739cc.tar.bz2
volse-hubzilla-aad6042d425c390ebc3eed1b77636c854df739cc.zip
DB Update 1259
Diffstat (limited to 'Zotlabs/Update/_1259.php')
-rw-r--r--Zotlabs/Update/_1259.php30
1 files changed, 30 insertions, 0 deletions
diff --git a/Zotlabs/Update/_1259.php b/Zotlabs/Update/_1259.php
new file mode 100644
index 000000000..235ca62f9
--- /dev/null
+++ b/Zotlabs/Update/_1259.php
@@ -0,0 +1,30 @@
+<?php
+
+namespace Zotlabs\Update;
+
+class _1259 {
+
+ function run() {
+
+ dbq("START TRANSACTION");
+
+
+ if(ACTIVE_DBTYPE == DBTYPE_POSTGRES) {
+ $r = true;
+ }
+
+ if(ACTIVE_DBTYPE == DBTYPE_MYSQL) {
+ $r = dbq("ALTER TABLE cache MODIFY COLUMN v MEDIUMTEXT NOT NULL");
+ }
+
+ if($r) {
+ dbq("COMMIT");
+ return UPDATE_SUCCESS;
+ }
+
+ q("ROLLBACK");
+ return UPDATE_FAILED;
+
+ }
+
+}