0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00
ghost/core/server/data
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
..
db Switched to mysql2 library 2022-03-03 09:59:37 +01:00
exporter Added the newsletters table 2022-03-29 15:23:26 +02:00
importer 🐛 Fixed uppercase file extensions ignored in content import (#14268) 2022-03-11 09:17:58 +01:00
migrations Fixed migration util dropping foreign keys before columns 2022-04-04 13:03:38 +01:00
schema Fixed migration util dropping foreign keys before columns 2022-04-04 13:03:38 +01:00