From 4403ab16e1cc4a1d4e73754163f8b1e438145397 Mon Sep 17 00:00:00 2001 From: linyaostalker <602604991@qq.com> Date: Thu, 21 Nov 2019 19:47:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=95=B0=E6=8D=AE=E8=A1=A8an?= =?UTF-8?q?tgoods=5Fattribute=E7=9A=84type=E5=AD=97=E6=AE=B5=EF=BC=8C?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E5=AD=97=E6=AE=B5=E9=BB=98=E8=AE=A4=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...olumn_type_in_table_antgoods_attribute.php | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 vendor/antgoods/goods/src/migrations/m191121_111825_update_column_type_in_table_antgoods_attribute.php diff --git a/vendor/antgoods/goods/src/migrations/m191121_111825_update_column_type_in_table_antgoods_attribute.php b/vendor/antgoods/goods/src/migrations/m191121_111825_update_column_type_in_table_antgoods_attribute.php new file mode 100644 index 0000000..2d6e34b --- /dev/null +++ b/vendor/antgoods/goods/src/migrations/m191121_111825_update_column_type_in_table_antgoods_attribute.php @@ -0,0 +1,28 @@ +dropColumn('antgoods_attribute', 'type'); + $this->addColumn('antgoods_attribute', 'type', $this->smallInteger(2)->notNull()->defaultValue(1)->comment('类型:1:商品sku属性')); + } + + /** + * {@inheritdoc} + */ + public function down() + { + $this->dropColumn('antgoods_attribute', 'type'); + $this->addColumn('antgoods_attribute', 'type', $this->smallInteger(2)->defaultValue(null)->comment('类型')); + return true; + } +}