parent
0e3071576b
commit
0cc3e64b8a
|
@ -1549,8 +1549,13 @@ Zotero.Schema = new function(){
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (dbVersion > schemaVersion) {
|
if (dbVersion > schemaVersion) {
|
||||||
throw new Error("Zotero '" + schema + "' DB version (" + dbVersion
|
let dbClientVersion = yield Zotero.DB.valueQueryAsync(
|
||||||
+ ") is newer than SQL file (" + schemaVersion + ")");
|
"SELECT value FROM settings WHERE setting='client' AND key='lastCompatibleVersion'"
|
||||||
|
);
|
||||||
|
throw new Zotero.DB.IncompatibleVersionException(
|
||||||
|
`Zotero '${schema}' DB version (${dbVersion}) is newer than SQL file (${schemaVersion})`,
|
||||||
|
dbClientVersion
|
||||||
|
);
|
||||||
}
|
}
|
||||||
let sql = yield _getSchemaSQL(schema);
|
let sql = yield _getSchemaSQL(schema);
|
||||||
yield Zotero.DB.executeSQLFile(sql);
|
yield Zotero.DB.executeSQLFile(sql);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user