fix: use column for store doc content json

This commit is contained in:
fantasticit 2022-03-26 22:15:34 +08:00
parent a7e2162288
commit 5b43a7f971
2 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ export class DocumentEntity {
@Column({ type: 'varchar', default: '未命名文档', comment: '文档标题' })
public title: string;
@Column({ type: 'longblob', comment: '文档内容' })
@Column({ type: 'longtext', comment: '文档内容' })
public content: string;
@Column({ type: 'longblob', comment: '文档内容' })

View File

@ -14,7 +14,7 @@ export class TemplateEntity {
@Column({ type: 'varchar', length: 200, comment: '标题' })
public title: string;
@Column({ type: 'longblob', comment: '文档内容' })
@Column({ type: 'longtext', comment: '文档内容' })
public content: string;
@Column({ type: 'longblob', comment: '文档内容' })