Increase mysql types limits (#128)

This commit is contained in:
Roman Kelesidis 2023-04-04 18:23:01 +07:00 committed by GitHub
parent be1623925b
commit 32bcab7ca2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 21 additions and 8 deletions

View File

@ -11,6 +11,11 @@
- Fix release template editor [\#120](https://github.com/torrentpier/torrentpier-lts/pull/120) ([belomaxorka](https://github.com/belomaxorka))
- Fix some notices in admin panel reported by BugSnag [\#121](https://github.com/torrentpier/torrentpier-lts/pull/121) ([belomaxorka](https://github.com/belomaxorka))
- Fix magnet link passkey creation for new users [\#122](https://github.com/torrentpier/torrentpier-lts/pull/122) ([belomaxorka](https://github.com/belomaxorka))
- Make activate key lenght configurable [\#125](https://github.com/torrentpier/torrentpier-lts/pull/125) ([belomaxorka](https://github.com/belomaxorka))
- Make user_newpasswd lenght configurable [\#126](https://github.com/torrentpier/torrentpier-lts/pull/126) ([belomaxorka](https://github.com/belomaxorka))
- Make password lenght configurable [\#127](https://github.com/torrentpier/torrentpier-lts/pull/127) ([belomaxorka](https://github.com/belomaxorka))
- Increase mysql types limits [\#128](https://github.com/torrentpier/torrentpier-lts/pull/128) ([belomaxorka](https://github.com/belomaxorka))
- Minor fixes [\#124](https://github.com/torrentpier/torrentpier-lts/pull/124) ([belomaxorka](https://github.com/belomaxorka))
## [v2.1.5-2023.03](https://github.com/torrentpier/torrentpier-lts/tree/v2.1.5-2023.03) (2023-04-04)
[Full Changelog](https://github.com/torrentpier/torrentpier-lts/compare/v2.1.5-2023.03...main)

View File

@ -973,7 +973,7 @@ DROP TABLE IF EXISTS `bb_search_results`;
CREATE TABLE IF NOT EXISTS `bb_search_results` (
`session_id` char(20) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '',
`search_type` tinyint(4) NOT NULL DEFAULT '0',
`search_id` varchar(12) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '',
`search_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '',
`search_time` int(11) NOT NULL DEFAULT '0',
`search_settings` text NOT NULL,
`search_array` text NOT NULL,
@ -989,7 +989,7 @@ CREATE TABLE IF NOT EXISTS `bb_search_results` (
-- ----------------------------
DROP TABLE IF EXISTS `bb_sessions`;
CREATE TABLE IF NOT EXISTS `bb_sessions` (
`session_id` char(20) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '',
`session_id` char(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '',
`session_user_id` mediumint(8) NOT NULL DEFAULT '0',
`session_start` int(11) NOT NULL DEFAULT '0',
`session_time` int(11) NOT NULL DEFAULT '0',
@ -1154,8 +1154,8 @@ DROP TABLE IF EXISTS `bb_users`;
CREATE TABLE IF NOT EXISTS `bb_users` (
`user_id` mediumint(8) NOT NULL AUTO_INCREMENT,
`user_active` tinyint(1) NOT NULL DEFAULT '1',
`username` varchar(25) NOT NULL DEFAULT '',
`user_password` varchar(32) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '',
`username` varchar(255) NOT NULL DEFAULT '',
`user_password` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '',
`user_session_time` int(11) NOT NULL DEFAULT '0',
`user_lastvisit` int(11) NOT NULL DEFAULT '0',
`user_last_ip` char(32) NOT NULL DEFAULT '',
@ -1182,9 +1182,9 @@ CREATE TABLE IF NOT EXISTS `bb_users` (
`user_sig` text NOT NULL DEFAULT '',
`user_occ` varchar(100) NOT NULL DEFAULT '',
`user_interests` varchar(255) NOT NULL DEFAULT '',
`user_actkey` varchar(32) NOT NULL DEFAULT '',
`user_newpasswd` varchar(32) NOT NULL DEFAULT '',
`autologin_id` varchar(12) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '',
`user_actkey` varchar(255) NOT NULL DEFAULT '',
`user_newpasswd` varchar(255) NOT NULL DEFAULT '',
`autologin_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '',
`user_newest_pm_id` mediumint(8) NOT NULL DEFAULT '0',
`user_points` float(16,2) NOT NULL DEFAULT '0.00',
`tpl_name` varchar(255) NOT NULL DEFAULT 'default',

View File

@ -62,4 +62,12 @@ ALTER TABLE `bb_users` CHANGE `user_birthday` `user_birthday` DATE NOT NULL DEFA
ALTER TABLE `bb_posts` CHANGE `mc_comment` `mc_comment` TEXT NOT NULL DEFAULT '';
ALTER TABLE `bb_users` CHANGE `user_sig` `user_sig` TEXT NOT NULL DEFAULT '';
ALTER TABLE `bb_groups` CHANGE `group_signature` `group_signature` TEXT NOT NULL DEFAULT '';
ALTER TABLE `bb_groups` CHANGE `group_description` `group_description` TEXT NOT NULL DEFAULT '';
ALTER TABLE `bb_groups` CHANGE `group_description` `group_description` TEXT NOT NULL DEFAULT '';
// 2.1.5 (LTS 2023.04)
ALTER TABLE `bb_users` CHANGE `user_actkey` `user_actkey` VARCHAR(255) NOT NULL DEFAULT '';
ALTER TABLE `bb_users` CHANGE `user_newpasswd` `user_newpasswd` VARCHAR(255) NOT NULL DEFAULT '';
ALTER TABLE `bb_users` CHANGE `autologin_id` `autologin_id` VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '';
ALTER TABLE `bb_users` CHANGE `username` `username` VARCHAR(255) NOT NULL DEFAULT '';
ALTER TABLE `bb_sessions` CHANGE `session_id` `session_id` CHAR(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '';
ALTER TABLE `bb_search_results` CHANGE `search_id` `search_id` VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '';