mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-15 08:16:08 +00:00
implemented pending workflow for sql and PR
This commit is contained in:
6
data/sql/updates/db_auth/2016_08_25_00.sql
Normal file
6
data/sql/updates/db_auth/2016_08_25_00.sql
Normal file
@@ -0,0 +1,6 @@
|
||||
ALTER TABLE auth_db_version CHANGE COLUMN 2016_07_10_00 2016_08_25_00 bit;
|
||||
|
||||
--
|
||||
-- Do not remove this file when we archive sql under this folder
|
||||
-- it is needed for pending sql importer
|
||||
--
|
||||
13
data/sql/updates/db_auth/2016_08_25_01.sql
Normal file
13
data/sql/updates/db_auth/2016_08_25_01.sql
Normal file
@@ -0,0 +1,13 @@
|
||||
ALTER TABLE auth_db_version CHANGE COLUMN 2016_08_25_00 2016_08_25_01 bit;
|
||||
|
||||
RENAME TABLE `auth_db_version` TO `version_db_auth`;
|
||||
|
||||
ALTER TABLE `version_db_auth`
|
||||
ADD COLUMN `sql_rev` VARCHAR(100) NOT NULL FIRST,
|
||||
ADD COLUMN `required_rev` VARCHAR(100) NULL AFTER `sql_rev`,
|
||||
ADD PRIMARY KEY (`sql_rev`),
|
||||
ENGINE=INNODB;
|
||||
|
||||
ALTER TABLE `version_db_auth` ADD CONSTRAINT `required` FOREIGN KEY (`required_rev`) REFERENCES `version_db_auth`(`sql_rev`);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user