mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-20 17:32:15 +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 |
||
---|---|---|
.. | ||
clients | ||
default-settings | ||
fixtures | ||
checks.js | ||
commands.js | ||
index.js | ||
schema.js | ||
validator.js |