Adding modifications from kritbit
This commit is contained in:
18
migrations.php
Normal file
18
migrations.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
|
||||
|
||||
spl_autoload_extensions(".php"); // comma-separated list
|
||||
spl_autoload_register();
|
||||
|
||||
foreach (glob("system/vendor/*.php") as $filename)
|
||||
{
|
||||
include $filename;
|
||||
}
|
||||
|
||||
if (!is_cli()) {
|
||||
die("This script must be ran from the command line");
|
||||
}
|
||||
|
||||
$core = new \system\engine\HF_Core(true);
|
||||
$core->runMigrations();
|
Reference in New Issue
Block a user