From 815be5bcaa714a412fe5434b8524c694bc4b0851 Mon Sep 17 00:00:00 2001 From: linyaostalker <602604991@qq.com> Date: Tue, 19 Nov 2019 10:41:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=A8vendor/antgoods=E5=88=9B=E5=BB=BAant?= =?UTF-8?q?=E5=95=86=E5=93=81=E6=A8=A1=E5=9D=97=E5=93=81=E7=89=8C=E8=A1=A8?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E8=BF=81=E7=A7=BB=E6=96=87=E4=BB=B6,?= =?UTF-8?q?=E5=9C=A8console/migrate=E5=88=A0=E9=99=A4=E5=93=81=E7=89=8C?= =?UTF-8?q?=E8=A1=A8=E6=95=B0=E6=8D=AE=E8=BF=81=E7=A7=BB=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/migrations/m191119_024029_create_table_brand.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) rename console/migrations/m191111_084452_create_table_brand.php => vendor/antgoods/goods/src/migrations/m191119_024029_create_table_brand.php (79%) diff --git a/console/migrations/m191111_084452_create_table_brand.php b/vendor/antgoods/goods/src/migrations/m191119_024029_create_table_brand.php similarity index 79% rename from console/migrations/m191111_084452_create_table_brand.php rename to vendor/antgoods/goods/src/migrations/m191119_024029_create_table_brand.php index 6658ff7..615e9ea 100644 --- a/console/migrations/m191111_084452_create_table_brand.php +++ b/vendor/antgoods/goods/src/migrations/m191119_024029_create_table_brand.php @@ -3,9 +3,9 @@ use yii\db\Migration; /** - * Class m191111_084452_create_table_brand + * Class m191119_024029_create_table_brand */ -class m191111_084452_create_table_brand extends Migration +class m191119_024029_create_table_brand extends Migration { /** * {@inheritdoc} @@ -13,7 +13,7 @@ class m191111_084452_create_table_brand extends Migration public function up() { $tableOptions = 'CHARACTER SET utf8 COLLATE utf8_general_ci ENGINE=InnoDB COMMENT="品牌表"'; - $this->createTable('ats_brand', [ + $this->createTable('antgoods_brand', [ 'id' => $this->primaryKey(), 'name'=>$this->string(50)->defaultValue(null)->comment('品牌名'), 'is_delete'=>$this->tinyInteger(1)->defaultValue(null)->comment('是否删除,1为已删除'), @@ -27,7 +27,7 @@ class m191111_084452_create_table_brand extends Migration */ public function down() { - $this->dropTable('ats_brand'); + $this->dropTable('antgoods_brand'); return true; } }