Rename table Banned_IPs to banned_ips [skip ci]

This commit is contained in:
Uleat 2019-12-24 02:36:00 -05:00
parent c87b4f2ad4
commit 72f4f10dbb
3 changed files with 7 additions and 1 deletions

View File

@ -31,7 +31,7 @@
*/
#define CURRENT_BINARY_DATABASE_VERSION 9144
#define CURRENT_BINARY_DATABASE_VERSION 9145
#ifdef BOTS
#define CURRENT_BINARY_BOTS_DATABASE_VERSION 9026

View File

@ -398,6 +398,7 @@
9142|2019_09_02_required_spawn_filter.sql|SHOW COLUMNS FROM `spawnentry` LIKE 'condition_value_filter'|empty|
9143|2019_09_16_account_table_changes.sql|SHOW COLUMNS FROM `account` LIKE 'ls_id'|empty|
9144|2019_11_09_logsys_description_update.sql|SELECT * FROM `logsys_categories`|not_empty|
9145|2019_12_24_banned_ips_update.sql|SHOW TABLES LIKE 'Banned_IPs'|not_empty|
# Upgrade conditions:
# This won't be needed after this system is implemented, but it is used database that are not

View File

@ -0,0 +1,5 @@
RENAME TABLE `Banned_IPs` TO `Banned_IPs_`;
CREATE TABLE `banned_ips` (PRIMARY KEY (`ip_address`)) SELECT `ip_address`, `notes` FROM `Banned_IPs_`;
DROP TABLE IF EXISTS `Banned_IPs_`;