mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 22:58:34 +00:00
[Tasks] Add Task Reward Points Field (#2317)
* Add task reward points field This replaces the separate DoN crystal reward fields with points and point_type fields. This will make it easier to import data from packet/client captures and possibly better support any future clients or tasks that don't reward through the newer reward window. * Fix manifest column check
This commit is contained in:
@@ -443,6 +443,7 @@
|
||||
9187|2022_07_09_task_zone_version_matching.sql|SHOW COLUMNS FROM `task_activities` LIKE 'zone_version'|empty|
|
||||
9188|2022_07_14_zone_expansion_revert.sql|SHOW COLUMNS FROM `zone` LIKE 'expansion'|empty|
|
||||
9189|2022_07_10_character_task_rewarded.sql|SHOW COLUMNS FROM `character_tasks` LIKE 'was_rewarded'|empty|
|
||||
9190|2022_07_13_task_reward_points.sql|SHOW COLUMNS FROM `tasks` LIKE 'reward_points'|empty|
|
||||
|
||||
# Upgrade conditions:
|
||||
# This won't be needed after this system is implemented, but it is used database that are not
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
ALTER TABLE `tasks`
|
||||
ADD COLUMN `reward_points` INT NOT NULL DEFAULT '0' AFTER `rewardmethod`,
|
||||
ADD COLUMN `reward_point_type` INT NOT NULL DEFAULT '0' AFTER `reward_points`;
|
||||
|
||||
-- convert don crystal points to new fields
|
||||
UPDATE tasks SET reward_point_type = 4 WHERE reward_radiant_crystals > 0;
|
||||
UPDATE tasks SET reward_point_type = 5 WHERE reward_ebon_crystals > 0;
|
||||
UPDATE tasks SET reward_points = reward_radiant_crystals WHERE reward_radiant_crystals > 0;
|
||||
UPDATE tasks SET reward_points = reward_ebon_crystals WHERE reward_ebon_crystals > 0;
|
||||
|
||||
ALTER TABLE `tasks`
|
||||
DROP COLUMN `reward_radiant_crystals`,
|
||||
DROP COLUMN `reward_ebon_crystals`;
|
||||
Reference in New Issue
Block a user