Ghost/core/server/data/migrations
Daniel Lockyer eddb77e204
Fixed migration util dropping foreign keys before columns
- if we add a column with a foreign key reference, the `down` migration
  will try to remove that column
- you can't remove a column without deleting the foreign key reference
  first
- our migration utils didn't take that into account and there's nothing
  in Knex to do this for us
- this commit deletes the foreign key before removing the column if we
  have one referenced in the column spec
- also updates the code to pass the column spec into the util
2022-04-04 13:03:38 +01:00
..
hooks Removed settings populateDefaults pre-migration 2021-02-10 10:34:08 +13:00
init Removed unnecessary checks during initial DB init 2022-02-21 08:44:40 +01:00
versions Added the newsletter API permissions 2022-03-31 16:08:23 +02:00
utils.js Fixed migration util dropping foreign keys before columns 2022-04-04 13:03:38 +01:00