[TikiWiki-commits] [Git][tikiwiki/tiki][29.x] [BP][FIX] Prevent tiki_queue entryId overflow: auto-upgrade to BIGINT + actionable errors

"Olivier Kango \(@olivierkango\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <69b91f2cad2f1_3b18c7ac262e9@gitlab-sidekiq-low-urgency-cpu-bound-v2-7fb98cc9d4-56lmw.mail>

Olivier Kango pushed to branch 29.x at Tiki Wiki CMS Groupware / Tiki


Commits:
f443cba1 by Olivier Kango at 2026-03-17T11:22:33+02:00
[BP][FIX] Prevent tiki_queue entryId overflow: auto-upgrade to BIGINT + actionable errors
---
* [FIX] Prevent tiki_queue entryId overflow: auto-upgrade to BIGINT + actionable errors
---
* [FIX] Remove runtime guards for tiki_queue entryId overflow

* remove runtime ALTER; add DB migration to BIGINT; improve errors

* [UX] Append actionable guidance for entryId/AUTO_INCREMENT overflow

* [FIX] Prevent tiki_queue entryId overflow: auto-upgrade to BIGINT + actionable errors

See merge request tikiwiki/tiki!8391

(cherry picked from commit 121040094e3e6aabd0c0d91909685de7a7fd052b)

See merge request tikiwiki/tiki!9767

- - - - -


2 changed files:

- db/tiki.sql
- + installer/schema/20250908_queue_entryid_bigint_tiki.sql


Changes:

=====================================
db/tiki.sql
=====================================
@@ -3943,11 +3943,12 @@ CREATE TABLE `tiki_credits_types` (
 
 DROP TABLE IF EXISTS `tiki_queue`;
 CREATE TABLE `tiki_queue` (
-    `entryId` INT PRIMARY KEY AUTO_INCREMENT,
+    `entryId` BIGINT UNSIGNED NOT NULL AUTO_INCREMENT,
     `queue` VARCHAR(25) NOT NULL,
     `timestamp` INT NOT NULL,
     `handler` VARCHAR(64) NULL,
     `message` TEXT NOT NULL,
+    PRIMARY KEY (`entryId`),
     KEY `queue_name_ix` (`queue`),
     KEY `queue_handler_ix` (`handler`)
 ) ENGINE=MyISAM;


=====================================
installer/schema/20250908_queue_entryid_bigint_tiki.sql
=====================================
@@ -0,0 +1,3 @@
+-- Convert tiki_queue.entryId from INT to BIGINT to prevent AUTO_INCREMENT overflow
+ALTER TABLE `tiki_queue`
+  MODIFY COLUMN `entryId` BIGINT UNSIGNED NOT NULL AUTO_INCREMENT;



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

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/f443cba18472e240ec57d5b6922b9a322301a5f5
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.