From cfd64c844297321a9022fd3c01b667102009ef65 Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Thu, 26 Oct 2023 15:20:50 +0700 Subject: [PATCH] SQL: Increase speed_up & speed_down type limits (#992) --- install/sql/mysql.sql | 8 ++++---- install/upgrade/changes.txt | 4 ++++ 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/install/sql/mysql.sql b/install/sql/mysql.sql index d7b2dbdd9..f19e4d7f8 100644 --- a/install/sql/mysql.sql +++ b/install/sql/mysql.sql @@ -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`) ) diff --git a/install/upgrade/changes.txt b/install/upgrade/changes.txt index 9ebb0cccf..127a0f172 100644 --- a/install/upgrade/changes.txt +++ b/install/upgrade/changes.txt @@ -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';