Browse Source

修改数据库部分是否删除字段,增加默认值

wechat_public_accounts
linyaostalker 5 years ago
parent
commit
8ad92f6eac
  1. 2
      vendor/antgoods/goods/src/migrations/m191119_022939_create_table_attribute.php
  2. 2
      vendor/antgoods/goods/src/migrations/m191119_023115_create_table_goods_attr.php
  3. 2
      vendor/antgoods/goods/src/migrations/m191119_024029_create_table_brand.php

2
vendor/antgoods/goods/src/migrations/m191119_022939_create_table_attribute.php

@ -19,7 +19,7 @@ class m191119_022939_create_table_attribute extends Migration
'value'=>$this->text()->notNull()->comment('属性值'),
'type'=>$this->smallInteger(2)->defaultValue(null)->comment('类型'),
'sort_order'=>$this->smallInteger(3)->defaultValue(null)->comment('排序'),
'is_delete'=>$this->tinyInteger(1)->defaultValue(null)->comment('是否删除,1为已删除'),
'is_delete'=>$this->tinyInteger(1)->defaultValue(0)->comment('是否删除,1为已删除'),
'created_at'=>$this->integer(11)->defaultValue(null)->comment('创建时间'),
'updated_at'=>$this->integer(11)->defaultValue(null)->comment('更新时间'),
],$tableOptions);

2
vendor/antgoods/goods/src/migrations/m191119_023115_create_table_goods_attr.php

@ -18,7 +18,7 @@ class m191119_023115_create_table_goods_attr extends Migration
'goods_id'=>$this->integer(11)->notNull()->comment('商品id'),
'attr_id'=>$this->integer(11)->notNull()->comment('属性id'),
'attr_value'=>$this->string(50)->notNull()->comment('属性名'),
'is_delete'=>$this->tinyInteger(1)->defaultValue(null)->comment('是否删除,1为已删除'),
'is_delete'=>$this->tinyInteger(1)->defaultValue(0)->comment('是否删除,1为已删除'),
'created_at'=>$this->integer(11)->defaultValue(null)->comment('创建时间'),
'updated_at'=>$this->integer(11)->defaultValue(null)->comment('更新时间'),
],$tableOptions);

2
vendor/antgoods/goods/src/migrations/m191119_024029_create_table_brand.php

@ -16,7 +16,7 @@ class m191119_024029_create_table_brand extends Migration
$this->createTable('antgoods_brand', [
'id' => $this->primaryKey(),
'name'=>$this->string(50)->notNull()->comment('品牌名'),
'is_delete'=>$this->tinyInteger(1)->defaultValue(null)->comment('是否删除,1为已删除'),
'is_delete'=>$this->tinyInteger(1)->defaultValue(0)->comment('是否删除,1为已删除'),
'created_at'=>$this->integer(11)->defaultValue(null)->comment('创建时间'),
'updated_at'=>$this->integer(11)->defaultValue(null)->comment('更新时间'),
],$tableOptions);

Loading…
Cancel
Save