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