Update dbmigrate.php
This commit is contained in:
parent
ca15514764
commit
5e4eac1225
@ -31,7 +31,7 @@ foreach ($dirs as $dir) {
|
|||||||
echo $file."...\n";
|
echo $file."...\n";
|
||||||
$o = null;
|
$o = null;
|
||||||
|
|
||||||
exec('mysql -uroot crunchbutton_travis < '.$dir.'/'.$file.' 2>&1 &', $o);
|
exec('mysql -u root crunchbutton_travis < '.$dir.'/'.$file.' 2>&1 &', $o);
|
||||||
$ret = implode("\n", $o);
|
$ret = implode("\n", $o);
|
||||||
|
|
||||||
if (preg_match('/ERROR [0-9]+/', $ret)) {
|
if (preg_match('/ERROR [0-9]+/', $ret)) {
|
||||||
@ -48,4 +48,4 @@ if ($error) {
|
|||||||
exit(1);
|
exit(1);
|
||||||
} else {
|
} else {
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user