修复升级数据库升级失败
This commit is contained in:
parent
b0eb7795e4
commit
6cf1e7df5b
@ -60,7 +60,7 @@ export class BookTaskModel extends Realm.Object<BookTaskModel> {
|
|||||||
status: BookTaskStatus
|
status: BookTaskStatus
|
||||||
errorMsg: string | null
|
errorMsg: string | null
|
||||||
isAuto: boolean // 是否自动
|
isAuto: boolean // 是否自动
|
||||||
openVideoGenerate: boolean // 是否开启视频生成
|
openVideoGenerate: boolean | null // 是否开启视频生成
|
||||||
updateTime: Date
|
updateTime: Date
|
||||||
createTime: Date
|
createTime: Date
|
||||||
imageCategory: BookImageCategory // 图片出图方式
|
imageCategory: BookImageCategory // 图片出图方式
|
||||||
@ -90,7 +90,7 @@ export class BookTaskModel extends Realm.Object<BookTaskModel> {
|
|||||||
prefixPrompt: "string?",
|
prefixPrompt: "string?",
|
||||||
suffixPrompt: "string?",
|
suffixPrompt: "string?",
|
||||||
status: 'string',
|
status: 'string',
|
||||||
openVideoGenerate: 'bool',
|
openVideoGenerate: 'bool?',
|
||||||
errorMsg: 'string?',
|
errorMsg: 'string?',
|
||||||
isAuto: 'bool',
|
isAuto: 'bool',
|
||||||
updateTime: 'date',
|
updateTime: 'date',
|
||||||
|
|||||||
@ -291,7 +291,7 @@ export class BaseRealmService extends BaseService {
|
|||||||
VideoMessage
|
VideoMessage
|
||||||
],
|
],
|
||||||
path: this.dbpath,
|
path: this.dbpath,
|
||||||
schemaVersion: 37,
|
schemaVersion: 39,
|
||||||
migration: migration
|
migration: migration
|
||||||
}
|
}
|
||||||
this.realm = await Realm.open(config)
|
this.realm = await Realm.open(config)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user