Add DB integrity check repair step for TEXT userID
Follow-up to 26056c87f1
This commit is contained in:
parent
c45c9cc23b
commit
bb46d72fd1
1 changed files with 8 additions and 0 deletions
|
@ -1365,6 +1365,14 @@ Zotero.Schema = new function(){
|
|||
}
|
||||
});
|
||||
}
|
||||
],
|
||||
// TEXT userID
|
||||
[
|
||||
"SELECT COUNT(*) > 0 FROM settings WHERE setting='account' AND key='userID' AND TYPEOF(value)='text'",
|
||||
async function () {
|
||||
let userID = await Zotero.DB.valueQueryAsync("SELECT value FROM settings WHERE setting='account' AND key='userID'");
|
||||
await Zotero.DB.queryAsync("UPDATE settings SET value=? WHERE setting='account' AND key='userID'", parseInt(userID.trim()));
|
||||
}
|
||||
]
|
||||
];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue