Init
This commit is contained in:
commit
60ca58f5ba
80 changed files with 9458 additions and 0 deletions
10
bin/migrate.php
Executable file
10
bin/migrate.php
Executable file
|
|
@ -0,0 +1,10 @@
|
|||
#!/usr/bin/env php
|
||||
<?php
|
||||
define('ROOT', dirname(__DIR__));
|
||||
$config = require ROOT . '/config/config.php';
|
||||
require_once ROOT . '/lib/DB.php';
|
||||
|
||||
DB::connect($config['db_path']);
|
||||
$applied = DB::autoMigrate(ROOT . '/sql');
|
||||
foreach ($applied as $v) echo " applied: $v\n";
|
||||
if (!$applied) echo " Nothing to do.\n";
|
||||
Loading…
Add table
Add a link
Reference in a new issue