mirror of
https://github.com/zotero/zotero.git
synced 2026-10-06 02:50:03 +00:00
Add timing for Extra field migration
This commit is contained in:
parent
a67ad90b9a
commit
29bf6a7809
1 changed files with 4 additions and 0 deletions
|
|
@ -682,6 +682,8 @@ Zotero.Schema = new function () {
|
|||
|
||||
Zotero.debug("Migrating fields from Extra");
|
||||
|
||||
var t = new Date();
|
||||
|
||||
var fieldID = Zotero.ItemFields.getID('extra');
|
||||
var sql = "SELECT itemID, value FROM itemData "
|
||||
+ "JOIN itemDataValues USING (valueID) "
|
||||
|
|
@ -735,6 +737,8 @@ Zotero.Schema = new function () {
|
|||
await Zotero.DB.queryAsync(
|
||||
"DELETE FROM settings WHERE setting='globalSchema' AND key='migrateExtra'"
|
||||
);
|
||||
|
||||
Zotero.debug(`Migrated fields from Extra for ${items.length} items in ${new Date() - t} ms`);
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue