mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 12:07:23 +08:00
install & update migrate --force
This commit is contained in:
@@ -64,7 +64,7 @@ if ($currentStep == 3) {
|
|||||||
if (!WITH_LARAVEL) {
|
if (!WITH_LARAVEL) {
|
||||||
throw new \RuntimeException('Laravel is not avaliable.');
|
throw new \RuntimeException('Laravel is not avaliable.');
|
||||||
}
|
}
|
||||||
$command = "php " . ROOT_PATH . "artisan migrate";
|
$command = "php " . ROOT_PATH . "artisan migrate --force";
|
||||||
$result = exec($command, $output, $result_code);
|
$result = exec($command, $output, $result_code);
|
||||||
$install->doLog(sprintf('command: %s, result_code: %s, result: %s', $command, $result_code, $result));
|
$install->doLog(sprintf('command: %s, result_code: %s, result: %s', $command, $result_code, $result));
|
||||||
$install->doLog("output: " . json_encode($output));
|
$install->doLog("output: " . json_encode($output));
|
||||||
|
|||||||
@@ -91,7 +91,7 @@ if ($currentStep == 3) {
|
|||||||
while ($isPost) {
|
while ($isPost) {
|
||||||
try {
|
try {
|
||||||
sql_query('SET sql_mode=(SELECT REPLACE(@@sql_mode,"NO_ZERO_DATE", ""))');
|
sql_query('SET sql_mode=(SELECT REPLACE(@@sql_mode,"NO_ZERO_DATE", ""))');
|
||||||
$command = "php " . ROOT_PATH . "artisan migrate";
|
$command = "php " . ROOT_PATH . "artisan migrate --force";
|
||||||
$result = exec($command, $output, $result_code);
|
$result = exec($command, $output, $result_code);
|
||||||
$update->doLog(sprintf('command: %s, result_code: %s, result: %s', $command, $result_code, $result));
|
$update->doLog(sprintf('command: %s, result_code: %s, result: %s', $command, $result_code, $result));
|
||||||
$update->doLog("output: " . json_encode($output));
|
$update->doLog("output: " . json_encode($output));
|
||||||
|
|||||||
Reference in New Issue
Block a user