From 9c9715a243aa3f15e0ea717dc09cd67b2d6eb4ab Mon Sep 17 00:00:00 2001 From: zhaoxiang Date: Thu, 11 Jun 2020 19:58:52 +0800 Subject: [PATCH] =?UTF-8?q?modified=20=E4=BC=98=E5=8C=96=E5=AE=89=E8=A3=85?= =?UTF-8?q?=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 8 +++++++- application/command/Install.php | 3 --- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 926f21c..91ca650 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,13 @@ php think apiadmin:install --db mysql://root:123456@127.0.0.1:3306/apiadmin#utf8 php think apiadmin:adminRouter ``` -> 第四步:获取管理后台账号密码 +> 第四步:构建后端路由 + +``` +php think migrate:run +``` + +> 第五步:获取管理后台账号密码 ``` cat application/install/lock.ini diff --git a/application/command/Install.php b/application/command/Install.php index cabae69..6605cb3 100644 --- a/application/command/Install.php +++ b/application/command/Install.php @@ -82,9 +82,6 @@ class Install extends Command { //生成lock文件,并且写入用户名密码 file_put_contents($lockFile, $authKey); $output->info('lock文件初始化成功'); - - Console::call('migrate:run'); - $output->info('必要数据初始化成功'); } catch (\PDOException $e) { $output->highlight($e->getMessage()); }