mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-04 08:54:36 +03:00
eddb77e204
- 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 |
||
---|---|---|
.. | ||
hooks | ||
init | ||
versions | ||
utils.js |