zotero/resource
Dan Stillman 0f96c20f3c Fix several possible DB upgrade errors from 4.0 to 5.0
- We were updating global schema before migrating userdata, but a 4 → 5
  upgrade involved a system.sql version bump, which wiped out itemTypes,
  causing 'annotation' to not exist after the upgrade. This moves global
  schema updates after userdata migration and bumps the global schema
  version to repair DBs that were already upgraded and broken.

- A system.sql bump without a global schema update would result in empty
  tables. This moves the global-schema-related tables to userdata.sql.

- The DB integrity check before userdata updates added in 5b9e6497a
  could fail when coming from an older DB, because the checks assume
  current schema. An integrity check is now done after a userdata update.
  (We were already skipping the new table/index reconciliation stuff. If
  old DBs are discovered to have problems that would cause a migration
  step to fail, we'll fix those explicitly in the steps.)

Also:

- Make sure `version` is `versionNumber` in the `fields` table. It was
  changed with a system.sql bump in 5.0, but hard-coded fields were later
  removed from system.sql in favor of schema.json, meaning that anyone who
  upgraded from 4.0 after that would never have `version` removed and so
  would have both fields (one from before and one from schema.json).
2021-08-17 00:41:59 -04:00
..
feeds Add DOMParser-based XML reader 2021-06-16 20:59:57 +01:00
pdf-renderer Fix and attach image annotation renderer 2021-03-02 18:12:24 -05:00
schema Fix several possible DB upgrade errors from 4.0 to 5.0 2021-08-17 00:41:59 -04:00
SingleFile@da6994a142 Update SingleFile and fix several bugs 2020-11-02 17:24:14 -07:00
tinymce Hack in TinyMCE to support selection and links 2021-03-02 17:43:10 -05:00
ace Use ace-builds NPM package 2020-12-18 10:45:38 -07:00
bluebird Introduce a build system 2017-05-23 17:02:50 +01:00
bluebird.js Stub Promise.defer() to avoid the Bluebird deprecation warnings 2019-08-27 00:47:39 -04:00
classnames.js Reactify the Tag Selector 2019-01-07 15:33:45 +02:00
concurrentCaller.js Delay properly on 429 response in syncAPIClient 2020-12-11 02:02:20 -05:00
config.js Introduce spell checker context menu and dictionaries managing 2021-06-23 19:25:46 -04:00
csl-validator.js Use latest csl-validator 2013-03-23 17:30:34 -04:00
hide.vbs Support unmodified Xpdf binaries 2015-04-01 04:36:21 -04:00
jspath.js Automatically download open-access PDFs when saving via the connector 2018-08-16 00:57:22 -04:00
loader.jsm Reactify item tags box 2019-11-08 06:41:06 -05:00
pako.js Type/field handling overhaul 2019-09-16 02:27:22 -04:00
pathparser.jsm Fx60: Fix issues with JS code modules 2019-08-27 00:47:39 -04:00
polyfill.js Object.values() polyfill for <Fx47 after 269e2f8b 2016-12-26 15:26:21 -05:00
prop-types.js Reactify the Tag Selector 2019-01-07 15:33:45 +02:00
react-autosuggest.js Reactify item tags box 2019-11-08 06:41:06 -05:00
react-dom.js React Tag Selector polish, i18n and tests 2019-01-21 11:01:27 +02:00
react-intl.js React Tag Selector polish, i18n and tests 2019-01-21 11:01:27 +02:00
react-virtualized.js Tag selector performance overhaul 2019-03-28 06:28:34 -04:00
react.js React Tag Selector polish, i18n and tests 2019-01-21 11:01:27 +02:00
redirect.sh Support unmodified Xpdf binaries 2015-04-01 04:36:21 -04:00
redirect.vbs Support unmodified Xpdf binaries 2015-04-01 04:36:21 -04:00
require.js Reactify item tags box 2019-11-08 06:41:06 -05:00
word-processor-plugin-installer.js Fix word plugin state display in the Pref dialog 2021-06-25 10:36:45 +03:00