0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00
ghost/core/server
Daniel Lockyer d8e58b53d0
Altered migration utility to always use algorithm=copy for MySQL (#14699)
refs https://github.com/TryGhost/Toolbox/issues/309
refs 2bfd8f8b7e

- we've previously had issues when dropping a column on `posts`
  because it's a large table and it can take a veeeeeeery long time with
  the default SQL produced by Knex
- we found a magic incantation that makes it super speedy (context in
  commit above) => `, algorithm=copy`
- for that migration, we did it all manually but we can now change the
  utility to always append this to the generated SQL so we don't have to
  think about the specific table size when adding or dropping columns
- this changes the `addColumn` and `dropColumn` utilities to append the
  string to SQL in MySQL, or just executes the SQL for SQLite
2022-05-09 10:16:36 +01:00
..
adapters 🔥 Removed versioned APIs 2022-04-28 15:37:09 +01:00
api Included newsletter relation by default in posts (#14723) 2022-05-09 11:06:59 +02:00
data Altered migration utility to always use algorithm=copy for MySQL (#14699) 2022-05-09 10:16:36 +01:00
lib Updated probe-image-size options to reflect underlying change 2022-03-09 20:27:38 +00:00
models Update dependency @tryghost/security to v0.3.0 (#14718) 2022-05-06 17:53:10 +01:00
services Removed api:versions from config 2022-05-06 08:22:05 +01:00
views Updated unsubscribe page 2022-03-10 10:39:20 +00:00
web Update dependency @tryghost/mw-error-handler to v1 (#14719) 2022-05-07 15:28:28 +01:00
analytics-events.js Added comments to all usages of lib/common/events 2021-07-07 16:02:44 +01:00
ghost-server.js Removed config and bluebird from ghost-server 2022-04-28 15:37:10 +01:00
notify.js Removed unused import 2021-12-06 08:17:07 +00:00
overrides.js Set global Luxon timezone override to UTC 2021-10-20 09:19:29 +02:00
run-update-check.js Revert "Revert "Extract logging from DI patterns, only use @tryghost/logging package"" (#13884) 2021-12-14 11:22:39 +00:00
update-check.js 🔥 Removed versioned APIs 2022-04-28 15:37:09 +01:00