SQL: Increase speed_up & speed_down type limits (#992)

This commit is contained in:
Roman Kelesidis 2023-10-26 15:20:50 +07:00 committed by GitHub
commit cfd64c8442
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 4 deletions

View file

@ -368,8 +368,8 @@ CREATE TABLE IF NOT EXISTS `bb_bt_tracker`
`uploaded` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
`downloaded` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
`remain` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
`speed_up` MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0',
`speed_down` MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0',
`speed_up` INT(11) UNSIGNED NOT NULL DEFAULT '0',
`speed_down` INT(11) UNSIGNED NOT NULL DEFAULT '0',
`up_add` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
`down_add` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
`update_time` INT(11) NOT NULL DEFAULT '0',
@ -395,8 +395,8 @@ CREATE TABLE IF NOT EXISTS `bb_bt_tracker_snap`
`topic_id` MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0',
`seeders` MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0',
`leechers` MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0',
`speed_up` INT(10) UNSIGNED NOT NULL DEFAULT '0',
`speed_down` INT(10) UNSIGNED NOT NULL DEFAULT '0',
`speed_up` INT(11) UNSIGNED NOT NULL DEFAULT '0',
`speed_down` INT(11) UNSIGNED NOT NULL DEFAULT '0',
`completed` INT(10) NOT NULL DEFAULT '0',
PRIMARY KEY (`topic_id`)
)

View file

@ -75,3 +75,7 @@ ALTER TABLE `bb_bt_tracker` CHANGE `complete` `complete` TINYINT(1) NOT NULL DEF
INSERT INTO `bb_extensions` VALUES ('1', 'webp', '');
INSERT INTO `bb_extensions` VALUES ('2', '7z', '');
INSERT INTO `bb_extensions` VALUES ('1', 'bmp', '');
ALTER TABLE `bb_bt_tracker` CHANGE `speed_up` `speed_up` INT(11) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `bb_bt_tracker` CHANGE `speed_down` `speed_down` INT(11) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `bb_bt_tracker_snap` CHANGE `speed_up` `speed_up` INT(11) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `bb_bt_tracker_snap` CHANGE `speed_down` `speed_down` INT(11) UNSIGNED NOT NULL DEFAULT '0';