完成评论

This commit is contained in:
augushong
2021-01-03 21:52:54 +08:00
parent bcc07c301e
commit 3b5a56aef5
18 changed files with 815 additions and 383 deletions

View File

@@ -36,8 +36,8 @@ class CreateTablePost extends Migrator
$table->addColumn(ColumnFormat::timestamp('create_time'));
$table->addColumn(ColumnFormat::timestamp('update_time'));
$table->addColumn(ColumnFormat::timestamp('delete_time'));
$table->addColumn(Column::make('content','text'));
$table->addColumn(Column::make('content_html','text'));
$table->addColumn(Column::longText('content'));
$table->addColumn(Column::longText('content_html'));
$table->addColumn(ColumnFormat::stringLong('desc')->setDefault('描述'));
$table->addColumn(ColumnFormat::integerTypeStatus('is_top')->setComment('是否置顶'));
$table->addColumn(ColumnFormat::integerTypeStatus('status')->setComment('1:显示,0:不显示'));