bbebe20779
Credits to cmangos. https://github.com/cmangos/mangos-classic/commit/62b5e82ed841f61f1b63e7d36f6f95cedb902e69 https://github.com/cmangos/mangos-classic/commit/f32b2b7c0aaa75276867802c5ed45ccc789370e9 https://github.com/cmangos/mangos-classic/commit/daedec012069e469fbb288be6f704f9582cbfdae https://github.com/cmangos/mangos-classic/commit/af884f89756fdf57e94f28d81548b23544a621db https://github.com/cmangos/mangos-classic/commit/e0352ec083dad10bb8d624cbc19243d920ca7bc0 https://github.com/cmangos/mangos-classic/commit/f0c4bb58e47edc0835be949ede3574bd6cb0cf13 Account creation template: https://github.com/masterking32/WoWSimpleRegistration
22 lines
447 B
SQL
22 lines
447 B
SQL
DROP PROCEDURE IF EXISTS add_migration;
|
|
delimiter ??
|
|
CREATE PROCEDURE `add_migration`()
|
|
BEGIN
|
|
DECLARE v INT DEFAULT 1;
|
|
SET v = (SELECT COUNT(*) FROM `migrations` WHERE `id`='20210519212944');
|
|
IF v=0 THEN
|
|
INSERT INTO `migrations` VALUES ('20210519212944');
|
|
-- Add your query below.
|
|
|
|
|
|
ALTER TABLE `account`
|
|
DROP COLUMN `sha_pass_hash`;
|
|
|
|
|
|
-- End of migration.
|
|
END IF;
|
|
END??
|
|
delimiter ;
|
|
CALL add_migration();
|
|
DROP PROCEDURE IF EXISTS add_migration;
|