aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Update/_1262.php
diff options
context:
space:
mode:
Diffstat (limited to 'Zotlabs/Update/_1262.php')
-rw-r--r--Zotlabs/Update/_1262.php30
1 files changed, 30 insertions, 0 deletions
diff --git a/Zotlabs/Update/_1262.php b/Zotlabs/Update/_1262.php
new file mode 100644
index 000000000..f457a0116
--- /dev/null
+++ b/Zotlabs/Update/_1262.php
@@ -0,0 +1,30 @@
+<?php
+
+namespace Zotlabs\Update;
+
+class _1262 {
+
+ function run() {
+
+ dbq("START TRANSACTION");
+
+
+ if(ACTIVE_DBTYPE == DBTYPE_POSTGRES) {
+ $r = true;
+ }
+
+ if(ACTIVE_DBTYPE == DBTYPE_MYSQL) {
+ $r = dbq("ALTER TABLE session MODIFY COLUMN sess_data MEDIUMTEXT NOT NULL");
+ }
+
+ if($r) {
+ dbq("COMMIT");
+ return UPDATE_SUCCESS;
+ }
+
+ q("ROLLBACK");
+ return UPDATE_FAILED;
+
+ }
+
+}