mirror of
https://github.com/mangosfour/server.git
synced 2025-12-17 07:37:03 +00:00
* Change sql update naming scheme from absent now revison numbers to date+counter, update old sql update names to preserve proper order.
This commit is contained in:
parent
708440742b
commit
32ad72350f
69 changed files with 128 additions and 125 deletions
|
|
@ -12,22 +12,25 @@ 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.
|
that should enable you to see if you need an update or not.
|
||||||
|
|
||||||
=== File name descriptin ===
|
=== File name descriptin ===
|
||||||
File names are divided into two parts. First part is the revision that will be
|
File names are divided into two parts. First part is the date+counter
|
||||||
compatible with database after apply update. The second part of the name,
|
that show commit apply date that will be compatible with database after apply update.
|
||||||
is the table that needs and update or has been added. See an example below:
|
The second part of the name, is the table that needs and update or has been added.
|
||||||
|
See an example below:
|
||||||
|
|
||||||
1123_characters_character_spell.sql
|
2008_10_17_01_characters_character_spell.sql
|
||||||
| | |
|
| | | |
|
||||||
| | |
|
| | | |
|
||||||
| | The table character_spell
|
| | | The table character_spell
|
||||||
| | will need an update.
|
| | | will need an update.
|
||||||
| |
|
| | |
|
||||||
| Name of affected DB (default recommended name)
|
| | Name of affected DB (default recommended name)
|
||||||
| Can be: characters, mangos, realmd
|
| | Can be: characters, mangos, realmd
|
||||||
|
| |
|
||||||
|
| Counter show number of sql update in updates list for provided data
|
||||||
|
| and set proper order for sql updates for some date
|
||||||
|
|
|
|
||||||
MaNGOS revision older 1123 will need this update.
|
MaNGOS commit date related to sql update. For related commit
|
||||||
After appling this update DB compatiable with revision 1122
|
you can see http://github.com/mangos/mangos/commits/master
|
||||||
will be compatibale with revision 1123.
|
Expected commit will be in commits list for provided date and it will have
|
||||||
Revision 1123 and any revision after 1123, e.g. 1124 or 1137,
|
sql update file name (2008_10_17_01_characters_character_spell.sql in our case) in list
|
||||||
already includes this update in the default database
|
changed files, After appling this update DB compatiable with found commit.
|
||||||
file mangos.sql.
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue