First Commit
This commit is contained in:
0
data/sql/updates/db_auth/.gitkeep
Normal file
0
data/sql/updates/db_auth/.gitkeep
Normal file
3
data/sql/updates/db_auth/2024_01_20_00.sql
Normal file
3
data/sql/updates/db_auth/2024_01_20_00.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
-- DB update 2023_04_24_00 -> 2024_01_20_00
|
||||
--
|
||||
DELETE FROM `updates` WHERE `state` = 'ARCHIVED';
|
||||
4
data/sql/updates/db_auth/2024_11_15_00.sql
Normal file
4
data/sql/updates/db_auth/2024_11_15_00.sql
Normal file
@@ -0,0 +1,4 @@
|
||||
-- DB update 2024_01_20_00 -> 2024_11_15_00
|
||||
UPDATE `updates`
|
||||
SET `state` = 'ARCHIVED'
|
||||
WHERE `name` LIKE '2023_%';
|
||||
11
data/sql/updates/db_auth/2024_12_15_00.sql
Normal file
11
data/sql/updates/db_auth/2024_12_15_00.sql
Normal file
@@ -0,0 +1,11 @@
|
||||
-- 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
|
||||
;
|
||||
12
data/sql/updates/db_auth/2025_01_26_00.sql
Normal file
12
data/sql/updates/db_auth/2025_01_26_00.sql
Normal file
@@ -0,0 +1,12 @@
|
||||
-- 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
|
||||
;
|
||||
5
data/sql/updates/db_auth/2025_02_16_00.sql
Normal file
5
data/sql/updates/db_auth/2025_02_16_00.sql
Normal file
@@ -0,0 +1,5 @@
|
||||
-- DB update 2025_01_26_00 -> 2025_02_16_00
|
||||
--
|
||||
ALTER TABLE `autobroadcast_locale`
|
||||
DROP PRIMARY KEY,
|
||||
ADD PRIMARY KEY (`realmid`, `id`, `locale`);
|
||||
11
data/sql/updates/db_auth/2025_02_16_01.sql
Normal file
11
data/sql/updates/db_auth/2025_02_16_01.sql
Normal file
@@ -0,0 +1,11 @@
|
||||
-- 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');
|
||||
Reference in New Issue
Block a user