Updates some backend stuff (#20852)

* Updates some backend stuff

* Warning

* update

* Adds some indexes for speeeeeeeeed
This commit is contained in:
AffectedArc07
2023-04-25 22:21:57 +01:00
committed by GitHub
parent 19af733ad2
commit ae37f5b22c
5 changed files with 40 additions and 7 deletions
+10
View File
@@ -0,0 +1,10 @@
# Updating SQL from 47 to 48 -AffectedArc07
# Updates ban table to add an exportable flag column
ALTER TABLE `ban`
ADD COLUMN `exportable` TINYINT NOT NULL DEFAULT '1' AFTER `unbanned_ip`;
ALTER TABLE `ban`
ADD INDEX `exportable` (`exportable`);
# Marks all existing bans as non-exportable
UPDATE ban SET exportable=0