From 29bf6a78098736f028bb907fe02a2b456a191928 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Wed, 7 Jan 2026 10:43:19 -0500 Subject: [PATCH] Add timing for Extra field migration --- chrome/content/zotero/xpcom/schema.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/chrome/content/zotero/xpcom/schema.js b/chrome/content/zotero/xpcom/schema.js index 1d9a3f758f..3b8f43ab4a 100644 --- a/chrome/content/zotero/xpcom/schema.js +++ b/chrome/content/zotero/xpcom/schema.js @@ -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`); };