From c9da4338fae0f883d190e7ff66941db8251c0993 Mon Sep 17 00:00:00 2001 From: Mike Macgirvin Date: Thu, 30 May 2024 13:44:20 +1000 Subject: [PATCH 1/3] make obj and target mediumtext --- install/schema_mysql.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install/schema_mysql.sql b/install/schema_mysql.sql index e90928275..6065beb3f 100644 --- a/install/schema_mysql.sql +++ b/install/schema_mysql.sql @@ -574,9 +574,9 @@ CREATE TABLE IF NOT EXISTS `item` ( `revision` int unsigned NOT NULL DEFAULT 0 , `verb` varchar(255) NOT NULL DEFAULT '', `obj_type` varchar(255) NOT NULL DEFAULT '', - `obj` text NOT NULL, + `obj` mediumtext NOT NULL, `tgt_type` varchar(255) NOT NULL DEFAULT '', - `target` text NOT NULL, + `target` mediumtext NOT NULL, `layout_mid` varchar(255) NOT NULL DEFAULT '', `postopts` text NOT NULL, `route` text NOT NULL, From 109eebe793b8a517134a4a6d689897877848f224 Mon Sep 17 00:00:00 2001 From: Mike Macgirvin Date: Thu, 30 May 2024 14:22:34 +1000 Subject: [PATCH 2/3] db update to increase the size limit on item.obj and item.target --- boot.php | 2 +- src/Update/_1281.php | 35 +++++++++++++++++++++++++++++++++++ view/fr/strings.php | 2 +- 3 files changed, 37 insertions(+), 2 deletions(-) create mode 100644 src/Update/_1281.php diff --git a/boot.php b/boot.php index ec74c75e0..16036888d 100755 --- a/boot.php +++ b/boot.php @@ -27,7 +27,7 @@ use Code\Lib\Url; */ const REPOSITORY_ID = 'streams'; -const DB_UPDATE_VERSION = 1280; +const DB_UPDATE_VERSION = 1281; const PROJECT_BASE = __DIR__; const ACTIVITYPUB_ENABLED = true; const NOMAD_PROTOCOL_VERSION = '13.3'; diff --git a/src/Update/_1281.php b/src/Update/_1281.php new file mode 100644 index 000000000..04b28ff98 --- /dev/null +++ b/src/Update/_1281.php @@ -0,0 +1,35 @@ + Date: Thu, 30 May 2024 20:52:25 +1000 Subject: [PATCH 3/3] dbsync - logic reversed --- src/Module/Admin/Dbsync.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Module/Admin/Dbsync.php b/src/Module/Admin/Dbsync.php index ceded868a..7e283c1d7 100644 --- a/src/Module/Admin/Dbsync.php +++ b/src/Module/Admin/Dbsync.php @@ -31,9 +31,9 @@ class Dbsync $c = new $cls(); if (method_exists($c, 'verify')) { $retval = $c->verify(); - if ($retval === true) { + if ($retval === false) { $o .= sprintf(t('Verification of update %s failed. Check system logs.'), $s); - } elseif ($retval === false) { + } elseif ($retval === true) { $o .= sprintf(t('Update %s was successfully applied.'), $s); set_config('database', $s, 'success'); } else {