新增分类排序

This commit is contained in:
augushong
2020-10-28 18:32:29 +08:00
parent 954c45b9eb
commit ca776744cb
6 changed files with 23 additions and 2 deletions

View File

@@ -36,6 +36,7 @@ class CreateTableCategory extends Migrator
->addColumn(ColumnFormat::timestamp('update_time'))
->addColumn(ColumnFormat::timestamp('delete_time'))
->addColumn(ColumnFormat::integer('pid')->setComment('上级id'))
->addColumn(ColumnFormat::integer('sort')->setComment('排序:越小越靠前'))
->addColumn(ColumnFormat::integer('level')->setDefault(1)->setComment('层级'))
->addColumn(ColumnFormat::stringShort('tpl_name')->setComment('模板名称'))
->addColumn(ColumnFormat::stringUrl('title_img')->setComment('附图'))