Update dbmigrate.php

This commit is contained in:
brunofullstack 2018-05-31 21:30:51 -03:00 committed by GitHub
parent ca15514764
commit 5e4eac1225
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,7 +31,7 @@ foreach ($dirs as $dir) {
echo $file."...\n";
$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);
if (preg_match('/ERROR [0-9]+/', $ret)) {
@ -48,4 +48,4 @@ if ($error) {
exit(1);
} else {
exit(0);
}
}