Updated Copyright year to 2013
[getmangos.git] / contrib / convertConditions / README.txt
blob31fa5a8e562a6527052d2eaea387e22a8d060795
2 # Copyright (C) 2005-2013 MaNGOS <http://getmangos.com/>
5 This small Python script is intended to help with the convertion
6 of the old condition-system to the new conditions system.
8 Requirements:
9 * Python 2.5 (at least tested with this version)
10 * The MySQLdb module (found on http://sourceforge.net/projects/mysql-python/)
12 You need to edit the ConvertConditions.py file for configure.
14 First variables that must be set are related to the database connection (host, user, passw).
16 Then you must specify which databases you want to convert (databases)
17 For portability, you must provide the name of the database, and the client expansion for which it is.
18 (2 == WotLK, 1 == TBC, 0 == classic)
20 You can also provide a list of databases to process multiple in one run.
22 With the next option, you can specify if you want to load a current `conditions` table (loadOldConditions)
23 Setting = 1 will load old conditions (default = 0).
24 In case you want to load from a database, which is not the first database you want the script to work on,
25 you can provide its name with the database variable.
27 The script will create (and overwrite existing!) sql-files:
28 conditions_dump.sql <-- this file stores a possible dump for the conditions table for the old conditions of your databases. (including the loaded)
30 <DB_NAME>_updates.sql <-- these files store the UPDATE statements to fill the condition_id fields for the tables.
31                           One file is created for each provided database.
33 Backup your data, before you change anything!