This class can be used to update MySQL databases using SQL change set files. This class is designed to help you update your database based on some changesets other people submit to it. Its designed to sit in your application base path and be added to versioning. The way it works, is that it will save the last changeset runned into a table in Mysql and then at each run it will check for newer change sets and run them. NOTICE: all files must have .sql extensions The Updater folder (__DB) has 4 folders: changesets This holds a folder for each changeset with the name as the Revision number, and in a revision folder you can place files that contain sql modifications. I recomend havinf them named with the pattern 99_tableName.sql - use the 99 to make the class run the changes in a certain order ( ex 01, 02, 03 ) tables This folder contains all the tables creation queries ( only the structure ). NOTICE: they must have the table as a name and be .sql files data Contains the initial data for the tables declared in the above folder. Not all the tables need data, place here data only for the tables that are required for the application to work. enviroment Holds the classes used to do the update.