aboutsummaryrefslogtreecommitdiffstats
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
parent85d8c1a97eec7fe40c6ea4b9ee895897d54a38c6 (diff)
downloadvolse-hubzilla-aad6042d425c390ebc3eed1b77636c854df739cc.tar.gz
volse-hubzilla-aad6042d425c390ebc3eed1b77636c854df739cc.tar.bz2
volse-hubzilla-aad6042d425c390ebc3eed1b77636c854df739cc.zip
DB Update 1259
-rw-r--r--Zotlabs/Update/_1259.php30
-rw-r--r--boot.php2
-rw-r--r--install/schema_mysql.sql2
3 files changed, 32 insertions, 2 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;
+
+ }
+
+}
diff --git a/boot.php b/boot.php
index 866c61944..906e1a2d8 100644
--- a/boot.php
+++ b/boot.php
@@ -63,7 +63,7 @@ define('PLATFORM_NAME', 'hubzilla');
define('STD_VERSION', '8.7.4');
define('ZOT_REVISION', '6.0');
-define('DB_UPDATE_VERSION', 1258);
+define('DB_UPDATE_VERSION', 1259);
define('PROJECT_BASE', __DIR__);
diff --git a/install/schema_mysql.sql b/install/schema_mysql.sql
index 570ac6c86..b17b62962 100644
--- a/install/schema_mysql.sql
+++ b/install/schema_mysql.sql
@@ -217,7 +217,7 @@ CREATE TABLE IF NOT EXISTS `auth_codes` (
CREATE TABLE IF NOT EXISTS `cache` (
`k` char(191) NOT NULL DEFAULT '',
- `v` text NOT NULL,
+ `v` mediumtext NOT NULL,
`updated` datetime NOT NULL DEFAULT '0001-01-01 00:00:00',
PRIMARY KEY (`k`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;