Browse Source

更改字段类型

wuyi 3 years ago
parent
commit
a985d9334e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/moments/entities/moments.entity.ts

+ 1 - 1
src/moments/entities/moments.entity.ts

@@ -13,7 +13,7 @@ export class Moments {
     @Column()
     @Column()
     title: string
     title: string
 
 
-    @Column()
+    @Column({ type: 'text' })
     content: string
     content: string
 
 
     @Column({ default: 0 })
     @Column({ default: 0 })