[TikiWiki-commits] [Git][tikiwiki/tiki][27.x] [FIX] Secdb: Change filename to TEXT to fix Data too long

"ushindi bienvenu \(@usbbush\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <6a8ce2eb5f66e_3818d1d4821e6@gitlab-sidekiq-low-urgency-cpu-bound-v2-58f65b899f-b4pbz.mail>

ushindi bienvenu pushed to branch 27.x at Tiki Wiki CMS Groupware / Tiki


Commits:
dbe41fce by ushindi bienvenu at 2026-08-25T02:33:30+02:00
[FIX] Secdb: Change filename to TEXT to fix Data too long

- - - - -


2 changed files:

- db/tiki.sql
- installer/schema/20260525_increase_filename_len_in_pk_tiki.php


Changes:

=====================================
db/tiki.sql
=====================================
@@ -2218,7 +2218,7 @@ CREATE TABLE `tiki_search_stats` (
 DROP TABLE IF EXISTS `tiki_secdb`;
 CREATE TABLE tiki_secdb(
   `md5_value` varchar(32) NOT NULL,
-  `filename` varchar(250) NOT NULL,
+  `filename` TEXT NOT NULL,
   `filename_hash` char(32) NOT NULL DEFAULT '',
   `tiki_version` varchar(60) NOT NULL,
   `severity` int(4) NOT NULL default '0',


=====================================
installer/schema/20260525_increase_filename_len_in_pk_tiki.php
=====================================
@@ -29,6 +29,11 @@ function upgrade_20260525_increase_filename_len_in_pk_tiki(Installer $installer)
             AND TABLE_NAME = 'tiki_secdb'"
     );
 
+    $installer->query(
+        "ALTER TABLE `tiki_secdb`
+        MODIFY COLUMN `filename` TEXT NOT NULL"
+    );
+
     if (! boolval($exists)) {
         $installer->query("
             ALTER TABLE `tiki_secdb`



View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/dbe41fce1d6d0425540050fc3e3e46d0b41e854b

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/dbe41fce1d6d0425540050fc3e3e46d0b41e854b
You're receiving this email because of your account on gitlab.com. Manage all notifications: https://gitlab.com/-/profile/notifications | Help: https://gitlab.com/help

_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.