diff --git a/console/migrations/m191111_100639_create_table_supplier.php b/vendor/antgoods/goods/src/migrations/m191119_025607_create_table_supplier.php similarity index 83% rename from console/migrations/m191111_100639_create_table_supplier.php rename to vendor/antgoods/goods/src/migrations/m191119_025607_create_table_supplier.php index e13f46a..60ccef4 100644 --- a/console/migrations/m191111_100639_create_table_supplier.php +++ b/vendor/antgoods/goods/src/migrations/m191119_025607_create_table_supplier.php @@ -3,9 +3,9 @@ use yii\db\Migration; /** - * Class m191111_100639_create_table_supplier + * Class m191119_025607_create_table_supplier */ -class m191111_100639_create_table_supplier extends Migration +class m191119_025607_create_table_supplier extends Migration { /** * {@inheritdoc} @@ -13,7 +13,7 @@ class m191111_100639_create_table_supplier extends Migration public function up() { $tableOptions = 'CHARACTER SET utf8 COLLATE utf8_general_ci ENGINE=InnoDB COMMENT="供应商表"'; - $this->createTable('ats_supplier', [ + $this->createTable('antgoods_supplier', [ 'id' => $this->primaryKey(), 'name'=>$this->string(50)->defaultValue(null)->comment('供应商名称'), 'full_name'=>$this->string(50)->defaultValue(null)->comment('供应商全称'), @@ -30,7 +30,7 @@ class m191111_100639_create_table_supplier extends Migration */ public function down() { - $this->dropTable('ats_supplier'); + $this->dropTable('antgoods_supplier'); return true; } }