V3.1.8
1. 添加软件高清倍率设置,实现自定义高清倍率(支持两倍、三倍和四倍,默认是两倍) 2. (聚合推文)新增导出草稿。可以依赖做好的草稿文件,只替换图片文件 3. (聚合推文)新增批量生成草稿 4. (聚合推文)修改小说批次任务进行详细界面操作为双击
This commit is contained in:
@@ -176,6 +176,27 @@ const migration = (oldRealm: Realm, newRealm: Realm) => {
|
||||
newBookTask[i].messageName = ''
|
||||
}
|
||||
}
|
||||
// if (oldRealm.schemaVersion < 25) {
|
||||
// const oldBookTask = oldRealm.objects('BookTaskDetail')
|
||||
// const newBookTask = newRealm.objects('BookTaskDetail')
|
||||
// for (let i = 0; i < oldBookTask.length; i++) {
|
||||
// newBookTask[i].draftDepend = undefined
|
||||
// }
|
||||
// }
|
||||
if (oldRealm.schemaVersion < 26) {
|
||||
const oldBookTask = oldRealm.objects('BookTask')
|
||||
const newBookTask = newRealm.objects('BookTask')
|
||||
for (let i = 0; i < oldBookTask.length; i++) {
|
||||
newBookTask[i].draftDepend = ''
|
||||
}
|
||||
}
|
||||
if (oldRealm.schemaVersion < 27) {
|
||||
const oldBookTask = oldRealm.objects('Book')
|
||||
const newBookTask = newRealm.objects('Book')
|
||||
for (let i = 0; i < oldBookTask.length; i++) {
|
||||
newBookTask[i].draftDepend = ''
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export class BaseRealmService extends BaseService {
|
||||
@@ -217,7 +238,7 @@ export class BaseRealmService extends BaseService {
|
||||
BookTaskDetailModel
|
||||
],
|
||||
path: this.dbpath,
|
||||
schemaVersion: 24,
|
||||
schemaVersion: 27,
|
||||
migration: migration
|
||||
}
|
||||
this.realm = await Realm.open(config)
|
||||
|
||||
Reference in New Issue
Block a user