Browse Source

Change comments_num default from NULL to 0

master
Menci 6 years ago
parent
commit
6538d6314c
  1. 2
      models/article.ts

2
models/article.ts

@ -38,7 +38,7 @@ export default class Article extends Model {
@TypeORM.Column({ nullable: true, type: "integer" })
sort_time: number;
@TypeORM.Column({ nullable: true, type: "integer" })
@TypeORM.Column({ default: 0, type: "integer" })
comments_num: number;
@TypeORM.Column({ default: true, type: "boolean" })

Loading…
Cancel
Save