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; + } +}