mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
5 lines
No EOL
426 B
SQL
5 lines
No EOL
426 B
SQL
ALTER TABLE `quest_template` ADD COLUMN `ZoneOrSort` int(11) NOT NULL default '0' AFTER `entry` ;
|
|
UPDATE `quest_template` SET `ZoneOrSort` = `ZoneId` WHERE `ZoneId` < 2147483647 ;
|
|
UPDATE `quest_template` SET `ZoneOrSort` = -(4294967295 - `ZoneId` + 1 ) WHERE `ZoneId` >= 2147483647 ;
|
|
UPDATE `quest_template` SET `ZoneOrSort` = -`questsort` WHERE `questsort` > 0 ;
|
|
ALTER TABLE `quest_template` DROP `questsort`, DROP `ZoneId`; |