chore(DB): archive 2024/2025 updates (#26742)

This commit is contained in:
Kitzunu
2026-07-22 19:20:11 +02:00
committed by GitHub
parent 5185c9e030
commit 23490a23c5
831 changed files with 8 additions and 0 deletions

View File

@@ -1,3 +0,0 @@
-- DB update 2023_04_24_00 -> 2024_01_20_00
--
DELETE FROM `updates` WHERE `state` = 'ARCHIVED';

View File

@@ -1,4 +0,0 @@
-- DB update 2024_01_20_00 -> 2024_11_15_00
UPDATE `updates`
SET `state` = 'ARCHIVED'
WHERE `name` LIKE '2023_%';

View File

@@ -1,11 +0,0 @@
-- DB update 2024_11_15_00 -> 2024_12_15_00
CREATE TABLE IF NOT EXISTS `motd_localized` (
`realmid` INT,
`locale` VARCHAR(4) NOT NULL COLLATE 'utf8mb4_unicode_ci',
`text` LONGTEXT NULL DEFAULT NULL COLLATE 'utf8mb4_unicode_ci',
PRIMARY KEY (`realmid`, `locale`)
)
CHARSET = utf8mb4
COLLATE = utf8mb4_unicode_ci
ENGINE = InnoDB
;

View File

@@ -1,12 +0,0 @@
-- DB update 2024_12_15_00 -> 2025_01_26_00
DROP TABLE IF EXISTS `autobroadcast_locale`;
CREATE TABLE `autobroadcast_locale` (
`realmid` INT NOT NULL,
`id` INT NOT NULL,
`locale` VARCHAR(4) NOT NULL,
`text` VARCHAR(45) NULL,
PRIMARY KEY (`realmid`, `id`))
CHARSET = utf8mb4
COLLATE = utf8mb4_unicode_ci
ENGINE = InnoDB
;

View File

@@ -1,5 +0,0 @@
-- DB update 2025_01_26_00 -> 2025_02_16_00
--
ALTER TABLE `autobroadcast_locale`
DROP PRIMARY KEY,
ADD PRIMARY KEY (`realmid`, `id`, `locale`);

View File

@@ -1,11 +0,0 @@
-- DB update 2025_02_16_00 -> 2025_02_16_01
--
ALTER TABLE `updates`
CHANGE COLUMN `state` `state` ENUM('RELEASED','CUSTOM','MODULE','ARCHIVED','PENDING') NOT NULL DEFAULT 'RELEASED' COMMENT 'defines if an update is released or archived.' COLLATE 'utf8mb4_unicode_ci' AFTER `hash`;
ALTER TABLE `updates_include`
CHANGE COLUMN `state` `state` ENUM('RELEASED','ARCHIVED','CUSTOM','PENDING') NOT NULL DEFAULT 'RELEASED' COMMENT 'defines if the directory contains released or archived updates.' COLLATE 'utf8mb4_unicode_ci' AFTER `path`;
DELETE FROM `updates_include` WHERE `path` = '$/data/sql/updates/pending_db_auth';
INSERT INTO `updates_include` (`path`, `state`) VALUES
('$/data/sql/updates/pending_db_auth', 'PENDING');

View File

@@ -1,4 +0,0 @@
-- DB update 2025_02_16_01 -> 2025_07_03_00
--
ALTER TABLE `autobroadcast_locale`
CHANGE COLUMN `text` `text` LONGTEXT NOT NULL COLLATE 'utf8mb4_unicode_ci' AFTER `locale`;

View File

@@ -1,4 +0,0 @@
-- DB update 2025_07_03_00 -> 2025_07_24_00
--
ALTER TABLE `account`
ADD COLUMN `Flags` INT UNSIGNED NOT NULL DEFAULT '0' AFTER `expansion`;