diff --git a/console/migrations/m191111_080318_create_table_shop_category.php b/vendor/antgoods/goods/src/migrations/m191119_021851_create_table_shop_category.php similarity index 87% rename from console/migrations/m191111_080318_create_table_shop_category.php rename to vendor/antgoods/goods/src/migrations/m191119_021851_create_table_shop_category.php index da2a1a3..eabe634 100644 --- a/console/migrations/m191111_080318_create_table_shop_category.php +++ b/vendor/antgoods/goods/src/migrations/m191119_021851_create_table_shop_category.php @@ -3,9 +3,9 @@ use yii\db\Migration; /** - * Class m191111_080318_create_table_shop_category + * Class m191119_021851_create_table_shop_category */ -class m191111_080318_create_table_shop_category extends Migration +class m191119_021851_create_table_shop_category extends Migration { /** * {@inheritdoc} @@ -13,7 +13,7 @@ class m191111_080318_create_table_shop_category extends Migration public function up() { $tableOptions = 'CHARACTER SET utf8 COLLATE utf8_general_ci ENGINE=InnoDB COMMENT="前端商品类别表"'; - $this->createTable('ats_shop_category', [ + $this->createTable('antgoods_shop_category', [ 'id' => $this->primaryKey(), 'name'=>$this->string(60)->defaultValue(null)->comment('类别名称'), 'pid'=>$this->integer(11)->defaultValue(null)->comment('父级id'), @@ -36,7 +36,7 @@ class m191111_080318_create_table_shop_category extends Migration */ public function down() { - $this->dropTable('kcs_tags_relation_goods'); + $this->dropTable('antgoods_shop_category'); return true; } }