From 3cd32156498fe4f21b716b3a468131a76361043c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B5=81=E7=81=AB=E8=A1=8C=E8=80=85?= Date: Fri, 24 Sep 2021 10:59:51 +0800 Subject: [PATCH 1/2] no message --- src/Base/DzqKernel.php | 27 +++++++++++++++++++++++++++ src/Console/Kernel.php | 1 - 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 src/Base/DzqKernel.php diff --git a/src/Base/DzqKernel.php b/src/Base/DzqKernel.php new file mode 100644 index 0000000..3db5483 --- /dev/null +++ b/src/Base/DzqKernel.php @@ -0,0 +1,27 @@ + Date: Fri, 24 Sep 2021 12:08:31 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E8=A1=A8=E8=BF=81?= =?UTF-8?q?=E7=A7=BB=E5=A2=9E=E5=8A=A0--force?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Database/PluginCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Database/PluginCommand.php b/src/Database/PluginCommand.php index 3505be1..102d3e2 100644 --- a/src/Database/PluginCommand.php +++ b/src/Database/PluginCommand.php @@ -39,7 +39,7 @@ class PluginCommand extends Command $databasePath = $item[$paths]['database'] . 'migrations'; $databasePath = str_replace($basePath,'',$databasePath); if (!file_exists($databasePath)) throw new \Exception($databasePath . ' directory in ' . $item['name_en'] . ' not exist.'); - $this->call('migrate', array_filter(['--path' => $databasePath])); + $this->call('migrate', array_filter(['--path' => $databasePath, '--force' => true])); break; } } -- Gitee