Ghost/core
Fabien 'egg' O'Carroll 52d1940460
Removed queries against information_schema (#12739)
no-issue

We were originally checking the state of the database, e.g. if a foreign
key constraint existed, so that we could conditionally act upon it. This
was to ensure that our migrations are idempotent.

Some database configurations, for example if you have many databases on
a single MySQL instance, would cause these information_schema queries to
take an exceptionally long time.

In order to speed up migrations, we instead attempt the action we want
to apply to the database, and then catch relevant errors to ensure the
migration is idempotent.

SQLite does not error when adding duplicate foreign or primary key
constraints, meaning that we must keep in pre-checks for these
operations, when running on SQLite

Co-authored-by: Daniel Lockyer <hi@daniellockyer.com>
2021-03-09 16:12:10 +00:00
..
client@4d2987b65c Updated Ghost-Admin to v4.0.0-rc.0 2021-03-05 14:08:52 +00:00
frontend Updated default accent color for content cta 2021-03-09 18:06:00 +05:30
server Removed queries against information_schema (#12739) 2021-03-09 16:12:10 +00:00
shared Bumped default API version to v4 in url-utils 2021-03-03 17:26:55 +13:00
app.js Added Sentry to new boot process 2021-02-19 09:20:41 +00:00
boot.js Added limit service 2021-03-03 13:43:05 +00:00