数据库安装文件增加默认字段

This commit is contained in:
2023-09-28 17:22:09 +08:00
parent f405eed384
commit 48d9c50d3a
5 changed files with 8 additions and 8 deletions

View File

@@ -33,10 +33,10 @@ class MallGoods extends Migrator
->addColumn(Column::bigInteger('cate_id')->setUnsigned()->setComment('分类ID'))
->addColumn(Column::char('title', 20)->setDefault('')->setComment('商品名称'))
->addColumn(Column::char('tag', 100)->setDefault('')->setComment('商品标签'))
->addColumn(Column::char('logo')->setComment('商品logo {image}'))
->addColumn(Column::text('images')->setComment('商品图片 {images}'))
->addColumn(Column::text('describe')->setComment('商品描述 {editor}'))
->addColumn(Column::text('property')->setComment('商品属性'))
->addColumn(Column::char('logo')->setDefault('')->setComment('商品logo {image}'))
->addColumn(Column::text('images')->setDefault('')->setComment('商品图片 {images}'))
->addColumn(Column::text('describe')->setDefault('')->setComment('商品描述 {editor}'))
->addColumn(Column::text('property')->setDefault('')->setComment('商品属性'))
->addColumn(Column::decimal('market_price')->setDefault(0)->setComment('市场价'))
->addColumn(Column::decimal('discount_price')->setDefault(0)->setComment('折扣价'))
->addColumn(Column::integer('sales')->setUnsigned()->setDefault(0)->setComment('销量'))