-
Notifications
You must be signed in to change notification settings - Fork 54
/
migrate.php
executable file
·43 lines (36 loc) · 1.13 KB
/
migrate.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/usr/bin/env php
<?php
/**
* This file is the main script which should be run on the command line in order to perform database migrations.
* If you want to use this script like so: ./migrate.php -- you will need to give it executable permissions (chmod +x migrate.php) and ensure the top line of this script points to the actual location of your PHP binary.
*
* @package mysql_php_migrations
* @subpackage Globals
* @license http://www.opensource.org/licenses/bsd-license.php The New BSD License
* @link http://code.google.com/p/mysql-php-migrations/
*/
// we want to see any errors
ini_set('display_errors', 1);
error_reporting(E_ALL);
// fix date issues
if (function_exists('date_default_timezone_set'))
{
date_default_timezone_set("UTC");
}
/**
* Define the full path to this file.
*/
define('MPM_PATH', dirname(__FILE__));
/**
* Version Number - for reference
*/
define('MPM_VERSION', '2.1.4');
/**
* Include the init script.
*/
require_once(MPM_PATH . '/lib/init.php');
// get the proper controller, do the action, and exit the script
$obj = MpmControllerFactory::getInstance($argv);
$obj->doAction();
exit;
?>