server/sql/updates
NoFantasy 61990de6dd [10252] Implement reputation_reward_rate for quests and creatures
* In addition, implement "flat" reputation for quests, where a value in RewRepValueN is given. Human diplomacy will not affect the total. The rate however will be applied, where a faction is defined with a rate for quests. Value in database are expected to be *100 of the actual value given (before rate are applied).
* New database storage can contain rates for quest/creature/spell reputation and will affect the base value given as reward. When for example the quest reward for a faction should receive 30% more reputation points, the rate can be set to 1.3.
* This will fix issues with certain quests that are using the expected RewRepValueId but where the outcome has been lower than expected.
* Note that if the rate is set to 0.0 it will disable reputation gain for the faction and type.
* Reputation rate for spells (spell effect) is not yet implemented

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-07-23 17:50:36 +02:00
..
0.5 Removed trailing whitespaces and CRLFs 2008-10-22 11:52:03 +02:00
0.6 Removed trailing whitespaces and CRLFs 2008-10-22 11:52:03 +02:00
0.7 Removed trailing whitespaces and CRLFs 2008-10-22 11:52:03 +02:00
0.8 Removed trailing whitespaces and CRLFs 2008-10-22 11:52:03 +02:00
0.9 Removed trailing whitespaces and CRLFs 2008-10-22 11:52:03 +02:00
0.10 Removed trailing whitespaces and CRLFs 2008-10-22 11:52:03 +02:00
0.11 Removed trailing whitespaces and CRLFs 2008-10-22 11:52:03 +02:00
0.12 [9779] Drop trailing whitespaces. 2010-04-23 05:28:51 +04:00
0.13 [9779] Drop trailing whitespaces. 2010-04-23 05:28:51 +04:00
0.14 [9779] Drop trailing whitespaces. 2010-04-23 05:28:51 +04:00
0.15 [9779] Drop trailing whitespaces. 2010-04-23 05:28:51 +04:00
0.16 [10001] Rename current version sql updates (0.16/root dir) to 5 digits format rev. 2010-05-28 23:48:50 +04:00
09010_01_realmd_realmlist.sql [10001] Rename current version sql updates (0.16/root dir) to 5 digits format rev. 2010-05-28 23:48:50 +04:00
09692_01_characters_mail.sql [10001] Rename current version sql updates (0.16/root dir) to 5 digits format rev. 2010-05-28 23:48:50 +04:00
09692_02_characters_mail.sql [10001] Rename current version sql updates (0.16/root dir) to 5 digits format rev. 2010-05-28 23:48:50 +04:00
09692_03_mangos_spell_proc_event.sql [10001] Rename current version sql updates (0.16/root dir) to 5 digits format rev. 2010-05-28 23:48:50 +04:00
09702_01_characters_item.sql [10001] Rename current version sql updates (0.16/root dir) to 5 digits format rev. 2010-05-28 23:48:50 +04:00
09704_01_mangos_achievement_reward.sql [10001] Rename current version sql updates (0.16/root dir) to 5 digits format rev. 2010-05-28 23:48:50 +04:00
09710_01_mangos_command.sql [10001] Rename current version sql updates (0.16/root dir) to 5 digits format rev. 2010-05-28 23:48:50 +04:00
09716_01_mangos_npc_vendor.sql [10001] Rename current version sql updates (0.16/root dir) to 5 digits format rev. 2010-05-28 23:48:50 +04:00
09716_02_mangos_mangos_string.sql [10001] Rename current version sql updates (0.16/root dir) to 5 digits format rev. 2010-05-28 23:48:50 +04:00
09720_01_mangos_spell_proc_event.sql [10001] Rename current version sql updates (0.16/root dir) to 5 digits format rev. 2010-05-28 23:48:50 +04:00
09728_01_mangos_gossip_menu_option.sql [10001] Rename current version sql updates (0.16/root dir) to 5 digits format rev. 2010-05-28 23:48:50 +04:00
09735_01_mangos_spell_proc_event.sql [10001] Rename current version sql updates (0.16/root dir) to 5 digits format rev. 2010-05-28 23:48:50 +04:00
09735_02_mangos_spell_chain.sql [10001] Rename current version sql updates (0.16/root dir) to 5 digits format rev. 2010-05-28 23:48:50 +04:00
09746_01_realmd_realmlist.sql [10001] Rename current version sql updates (0.16/root dir) to 5 digits format rev. 2010-05-28 23:48:50 +04:00
09747_01_mangos_battleground_template.sql [10001] Rename current version sql updates (0.16/root dir) to 5 digits format rev. 2010-05-28 23:48:50 +04:00
09748_01_realmd_realmlist.sql [10001] Rename current version sql updates (0.16/root dir) to 5 digits format rev. 2010-05-28 23:48:50 +04:00
09751_01_characters.sql [10001] Rename current version sql updates (0.16/root dir) to 5 digits format rev. 2010-05-28 23:48:50 +04:00
09752_01_mangos_gameobject_template.sql [10001] Rename current version sql updates (0.16/root dir) to 5 digits format rev. 2010-05-28 23:48:50 +04:00
09753_01_mangos_instance_template.sql [10001] Rename current version sql updates (0.16/root dir) to 5 digits format rev. 2010-05-28 23:48:50 +04:00
09755_01_mangos_instance_template.sql [10001] Rename current version sql updates (0.16/root dir) to 5 digits format rev. 2010-05-28 23:48:50 +04:00
09761_01_mangos_mangos_string.sql [10001] Rename current version sql updates (0.16/root dir) to 5 digits format rev. 2010-05-28 23:48:50 +04:00
09763_01_mangos_battleground_template.sql [10001] Rename current version sql updates (0.16/root dir) to 5 digits format rev. 2010-05-28 23:48:50 +04:00
09766_01_mangos_spell_proc_event.sql [10001] Rename current version sql updates (0.16/root dir) to 5 digits format rev. 2010-05-28 23:48:50 +04:00
09767_01_mangos_mangos_string.sql [10001] Rename current version sql updates (0.16/root dir) to 5 digits format rev. 2010-05-28 23:48:50 +04:00
09767_02_mangos_command.sql [10001] Rename current version sql updates (0.16/root dir) to 5 digits format rev. 2010-05-28 23:48:50 +04:00
09767_03_characters_characters.sql [10001] Rename current version sql updates (0.16/root dir) to 5 digits format rev. 2010-05-28 23:48:50 +04:00
09768_01_mangos_command.sql [10001] Rename current version sql updates (0.16/root dir) to 5 digits format rev. 2010-05-28 23:48:50 +04:00
09794_01_mangos_mangos_string.sql [10001] Rename current version sql updates (0.16/root dir) to 5 digits format rev. 2010-05-28 23:48:50 +04:00
09794_02_mangos_command.sql [10001] Rename current version sql updates (0.16/root dir) to 5 digits format rev. 2010-05-28 23:48:50 +04:00
09803_01_mangos_spell_bonus_data.sql [10001] Rename current version sql updates (0.16/root dir) to 5 digits format rev. 2010-05-28 23:48:50 +04:00
09826_01_mangos_spell_script_target.sql [10001] Rename current version sql updates (0.16/root dir) to 5 digits format rev. 2010-05-28 23:48:50 +04:00
09849_01_characters_saved_variables.sql [10001] Rename current version sql updates (0.16/root dir) to 5 digits format rev. 2010-05-28 23:48:50 +04:00
09854_01_mangos_spell_bonus_data.sql [10001] Rename current version sql updates (0.16/root dir) to 5 digits format rev. 2010-05-28 23:48:50 +04:00
09881_01_mangos_scripts.sql [10001] Rename current version sql updates (0.16/root dir) to 5 digits format rev. 2010-05-28 23:48:50 +04:00
09883_01_mangos_scripts.sql [10001] Rename current version sql updates (0.16/root dir) to 5 digits format rev. 2010-05-28 23:48:50 +04:00
09886_01_mangos_mangos_string.sql [10001] Rename current version sql updates (0.16/root dir) to 5 digits format rev. 2010-05-28 23:48:50 +04:00
09886_02_mangos_command.sql [10001] Rename current version sql updates (0.16/root dir) to 5 digits format rev. 2010-05-28 23:48:50 +04:00
09891_01_mangos_creature_movement.sql [10001] Rename current version sql updates (0.16/root dir) to 5 digits format rev. 2010-05-28 23:48:50 +04:00
09891_02_mangos_creature_movement_scripts.sql [10001] Rename current version sql updates (0.16/root dir) to 5 digits format rev. 2010-05-28 23:48:50 +04:00
09899_01_mangos_spell_bonus_data.sql [10001] Rename current version sql updates (0.16/root dir) to 5 digits format rev. 2010-05-28 23:48:50 +04:00
09924_01_mangos_mangos_string.sql [10001] Rename current version sql updates (0.16/root dir) to 5 digits format rev. 2010-05-28 23:48:50 +04:00
09924_02_mangos_command.sql [10001] Rename current version sql updates (0.16/root dir) to 5 digits format rev. 2010-05-28 23:48:50 +04:00
09957_01_mangos_mangos_string.sql [10001] Rename current version sql updates (0.16/root dir) to 5 digits format rev. 2010-05-28 23:48:50 +04:00
09957_02_mangos_npc_vendor.sql [10001] Rename current version sql updates (0.16/root dir) to 5 digits format rev. 2010-05-28 23:48:50 +04:00
09967_01_mangos_spell_proc_event.sql [10001] Rename current version sql updates (0.16/root dir) to 5 digits format rev. 2010-05-28 23:48:50 +04:00
09974_01_characters_group.sql [10001] Rename current version sql updates (0.16/root dir) to 5 digits format rev. 2010-05-28 23:48:50 +04:00
09977_01_mangos_spell_proc_event.sql [10001] Rename current version sql updates (0.16/root dir) to 5 digits format rev. 2010-05-28 23:48:50 +04:00
09978_01_mangos_spell_bonus_data.sql [10001] Rename current version sql updates (0.16/root dir) to 5 digits format rev. 2010-05-28 23:48:50 +04:00
09988_01_mangos_spell_chain.sql [10001] Rename current version sql updates (0.16/root dir) to 5 digits format rev. 2010-05-28 23:48:50 +04:00
09990_01_mangos_spell_chain.sql [10001] Rename current version sql updates (0.16/root dir) to 5 digits format rev. 2010-05-28 23:48:50 +04:00
10007_01_characters_pet_aura.sql [10008] Fix sqls 2010-05-30 23:58:27 +03:00
10008_01_mangos_db_verison.sql [10008] Fix sqls 2010-05-30 23:58:27 +03:00
10008_01_realmd_realmd_db_version.sql [10008] Fix sqls 2010-05-30 23:58:27 +03:00
10011_01_mangos_spell_proc_event.sql [10011] Check redundent procFlags value in spell_proc_event. 2010-05-31 12:27:47 +04:00
10012_01_mangos_spell_proc_event.sql [10012] Fix charges taking for 16246 2010-05-31 22:04:26 +03:00
10015_01_mangos_spell_proc_event.sql [10015] More redundant data check in spell_proc_event 2010-06-01 04:45:50 +04:00
10017_01_mangos_spell_proc_event.sql [10017] Make spell_proc_event.SchoolMask unsigned. 2010-06-01 06:26:57 +04:00
10036_01_mangos_spell_chain.sql [10036] Fixed health restore and triggering cooldown for talent 30881 and ranks. 2010-06-06 18:39:08 +04:00
10036_01_mangos_spell_proc_event.sql [10036] Fixed health restore and triggering cooldown for talent 30881 and ranks. 2010-06-06 18:39:08 +04:00
10044_01_mangos_spell_chain.sql [10044] Generate talent related spell_chain data instead storing its in table. 2010-06-08 01:51:32 +04:00
10044_02_mangos_spell_proc_event.sql [10044] Generate talent related spell_chain data instead storing its in table. 2010-06-08 01:51:32 +04:00
10045_01_mangos_spell_proc_event.sql [10045] Frop unexpected custom rank data for 26016. 2010-06-08 17:31:10 +04:00
10051_01_characters_character_aura.sql [10051] Fixed talent 58426 broken after 3.3.3 switch. 2010-06-12 04:32:33 +04:00
10056_01_mangos_spell_proc_event.sql [10056] Re-add spell proc sql data from [7879]. 2010-06-14 20:13:24 +04:00
10086_01_mangos_command.sql [10086] Implement use .go command with shiftlinks or player name. 2010-06-20 07:13:20 +04:00
10089_01_mangos_game_event_pool.sql [10089] Change in event system work with pool system. 2010-06-21 06:13:02 +04:00
10106_01_mangos_command.sql [10106] More modes for .go commands 2010-06-26 17:26:00 +04:00
10106_02_mangos_mangos_string.sql [10106] More modes for .go commands 2010-06-26 17:26:00 +04:00
10107_01_mangos_mangos_string.sql [10107] Pool/event info in .npc info and .gobject target commands 2010-06-26 18:56:22 +04:00
10109_01_mangos_creature_model_info.sql [10109] Add and use actual bounding_radius/combat_reach per model for characters. 2010-06-27 01:31:51 +02:00
10119_01_mangos_creature_model_info.sql [10119] Add model data for undead player that got lost for rev 10109 2010-06-29 09:54:55 +02:00
10125_01_mangos_mangos_string.sql [10125] Add pool/event ids to diff creature/gameobject list output commands. 2010-06-30 20:45:12 +04:00
10131_01_mangos_spell_bonus_data.sql [10131] Fix spellpower bonus received by 54181 2010-07-01 10:17:15 +02:00
10148_01_mangos_mangos_string.sql [10148] Improve .gm ingame command 2010-07-04 00:30:36 +02:00
10156_01_characters_character_aura.sql [10156] Add shared object for auras of same spell and move spell proc code to its own file, also spread procs by auras and effect indexes. 2010-07-07 19:08:26 +03:00
10156_02_characters_pet_aura.sql [10156] Add shared object for auras of same spell and move spell proc code to its own file, also spread procs by auras and effect indexes. 2010-07-07 19:08:26 +03:00
10156_03_mangos_spell_proc_event.sql [10156] Add shared object for auras of same spell and move spell proc code to its own file, also spread procs by auras and effect indexes. 2010-07-07 19:08:26 +03:00
10159_01_mangos_spell_proc_event.sql [10159] clean-up after recent changes 2010-07-08 13:30:08 +03:00
10160_01_characters_character_aura.sql [10160] Fix sql for character_aura and pet_aura 2010-07-08 17:52:36 +03:00
10160_02_characters_pet_aura.sql [10160] Fix sql for character_aura and pet_aura 2010-07-08 17:52:36 +03:00
10171_01_mangos_mangos_string.sql [10171] Clarify acoount password/lock command errors. 2010-07-09 23:20:39 +04:00
10197_01_mangos_playercreateinfo.sql [10197] Add to playercreateinfo original player orientation field. 2010-07-15 22:25:27 +04:00
10203_01_mangos_item_template.sql [10203] Rename item_template.Faction to Flags2 and define some values for it. 2010-07-17 04:51:25 +04:00
10205_01_mangos_spell_area.sql [10205] Correctly implement flying mount restrictions in zone 4395 by use of special area flag. 2010-07-17 05:53:17 +02:00
10207_01_mangos_npc_vendor.sql [10207] Implement ITEM_FLAGS2_EXT_COST_REQUIRES_GOLD use instead sign of ExtendedCost field. 2010-07-17 19:23:38 +04:00
10208_01_mangos_playercreateinfo.sql [10208] Add proper data for character orientation at creating. 2010-07-17 20:04:38 +04:00
10217_01_mangos_playercreateinfo_spell.sql [10217] Update playercreateinfo_action/playercreateinfo_spell 2010-07-18 12:26:12 +04:00
10217_02_mangos_playercreateinfo_action.sql [10217] Update playercreateinfo_action/playercreateinfo_spell 2010-07-18 12:26:12 +04:00
10217_03_mangos_spell_learn_spell.sql [10217] Update playercreateinfo_action/playercreateinfo_spell 2010-07-18 12:26:12 +04:00
10217_04_mangos_spell_chain.sql [10217] Update playercreateinfo_action/playercreateinfo_spell 2010-07-18 12:26:12 +04:00
10217_05_mangos_spell_proc_event.sql [10217] Update playercreateinfo_action/playercreateinfo_spell 2010-07-18 12:26:12 +04:00
10219_01_mangos_spell_proc_event.sql [10219] Fix spell 36032 stacking and procs 2010-07-18 20:02:13 +03:00
10223_01_mangos_spell_proc_event.sql [10223] Implement spell 44572 affect to permament stun immuned targets. 2010-07-19 06:53:01 +04:00
10237_01_mangos_spell_bonus_data.sql [10237] Implement additional damage proc on hit for Spell 8024 and ranks. 2010-07-21 03:19:52 +02:00
10244_01_mangos_command.sql [10244] Implement .stable gm command for open pet stable anywhere. 2010-07-22 08:49:15 +04:00
10251_01_mangos_command.sql [10251] Clarify error message for one from redundent commamd data case. 2010-07-23 19:34:23 +04:00
10252_01_mangos_reputation_reward_rate.sql [10252] Implement reputation_reward_rate for quests and creatures 2010-07-23 17:50:36 +02:00
Makefile.am [10252] Implement reputation_reward_rate for quests and creatures 2010-07-23 17:50:36 +02:00
README [9906] More user friendly output at DB version check fail. 2010-05-16 03:03:25 +04:00

= MaNGOS -- README =

Copyright (c) 2005-2010 MaNGOS <http://getmangos.com/>

See the COPYING file for copying conditions.

== Database Updates ==

This folder contains SQL files which will apply required updates to your MySQL
database, whenever the MaNGOS database structure has been changed or extended.

To see if you need an update, the file names have been given a fixed structure
that should enable you to see if you need an update or not.

=== File Name Description ===

File names are divided into two parts.

First part is the revision and counter that shows the commit revision that
will be compatible with the database after apply that particular update.
Counter sets the order to apply sql updates for the same revision.

The second part of the name is the database and the table that needs an update or has been added.

See an example below:

         6936_01_mangos_spell_chain.sql
         |    |  |      |
         |    |  |      |
         |    |  |      The table `spell_chain`
         |    |  |      will need an update.
         |    |  |
         |    |  Name of affected DB (default recommended name)
         |    |  Can be: characters, mangos, realmd
         |    |
         |    Counter show number of sql updates in updates list for provided revision
         |    and set proper order for sql updates for same revision
         |
         MaNGOS commit revision related to sql update.
         It included in commit description in form [6936] as you can see at http://github.com/mangos/mangos/commits/master

After applying an update the DB is compatible with the mangos revision of this sql update.
SQL updates include special protection against multiple and wrong order of update application.

Attempts to apply sql updates to an older DB without previous SQL updates in list for the database
or to DB with already applied this or later SQL update will generate an error and not be applied.

=== For Commiters ====

MaNGOS sources include special tool ( contrib/git_id ) for generation revision info
in commit notes and in src/shared/revision_nr.h file. It have option '-s' that let set
correct sql update names with revision number, generate sql update order guard queries,
and update version fields in mangos.sql/etc. For it use name sql updates in form
01_mangos_spell_chain.sql or 9999_01_mangos_spell_chain.sql (counter can be _01_, _02_, and etc,
dependent from sql updates amount in commit) and _not_ add to sql updates
guard queries. Include sql updates in commit. After commit adding to local repo call git_id
with -s option (and another, note: -s option not work propertly with -l option). Other steps
tool will do by self and apply changes to commit. After tool use commit with sql updates ready
to push.