Increase post_text & privmsgs_text limits (#848)

This commit is contained in:
Roman Kelesidis 2023-08-01 16:59:32 +07:00 committed by GitHub
commit 0cb2a3f74b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View file

@ -987,7 +987,7 @@ DROP TABLE IF EXISTS `bb_posts_text`;
CREATE TABLE IF NOT EXISTS `bb_posts_text`
(
`post_id` MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0',
`post_text` TEXT NOT NULL,
`post_text` MEDIUMTEXT NOT NULL,
PRIMARY KEY (`post_id`)
)
ENGINE = MyISAM
@ -1031,7 +1031,7 @@ DROP TABLE IF EXISTS `bb_privmsgs_text`;
CREATE TABLE IF NOT EXISTS `bb_privmsgs_text`
(
`privmsgs_text_id` MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0',
`privmsgs_text` TEXT NOT NULL,
`privmsgs_text` MEDIUMTEXT NOT NULL,
PRIMARY KEY (`privmsgs_text_id`)
)
ENGINE = MyISAM

View file

@ -65,3 +65,5 @@ INSERT INTO bb_config VALUES ('show_board_start_index', '1');
INSERT INTO `bb_cron` (`cron_active`, `cron_title`, `cron_script`, `schedule`, `run_day`, `run_time`, `run_order`,
`last_run`, `next_run`, `run_interval`, `log_enabled`, `log_file`, `log_sql_queries`,
`disable_board`, `run_counter`) VALUES ('1', 'PM cleanup', 'clean_pm.php', 'daily', '', '05:00:00', '70', '', '', '', '1', '', '0', '1', '0');
ALTER TABLE `bb_posts_text` CHANGE `post_text` `post_text` MEDIUMTEXT NOT NULL;
ALTER TABLE `bb_privmsgs_text` CHANGE `privmsgs_text` `privmsgs_text` MEDIUMTEXT NOT NULL;