<?php
# Include the script.
include_once('AutoDbUp.php');
# Load the script and specify the path where all sql files are saved,
# the files inside that directory must contain numeric names and increasing
# that will be the revision number of your database, example:
# 1.sql, 2.sql, 3.sql, 4.sql, 5.sql and so on, for each update you make.
$autoDbUp = new AutoDbUp('path/to/sql/files');
# Run the script's upgrade method to search all the new sql files and run them.
$autoDbUp->upgrade();
?>
|