-
Notifications
You must be signed in to change notification settings - Fork 473
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Drop sha_pass_hash from account database.
Credits to cmangos. cmangos/mangos-classic@62b5e82 cmangos/mangos-classic@f32b2b7 cmangos/mangos-classic@daedec0 cmangos/mangos-classic@af884f8 cmangos/mangos-classic@e0352ec cmangos/mangos-classic@f0c4bb5 Account creation template: https://github.com/masterking32/WoWSimpleRegistration
- Loading branch information
Showing
10 changed files
with
450 additions
and
165 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.