Ghost/core/server/data/schema
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
..
clients Switched to mysql2 library 2022-03-03 09:59:37 +01:00
default-settings 💡 Updated fixtures to make it easier to get started (#14299) 2022-03-10 17:41:46 +00:00
fixtures Enabled Admin integration for tiers and offers API (#14325) 2022-03-16 16:46:26 +05:30
checks.js Update Test & linting packages (major) (#10858) 2019-07-05 13:40:43 +02:00
commands.js Fixed migration util dropping foreign keys before columns 2022-04-04 13:03:38 +01:00
index.js Moved schema validator into the schema module 2021-06-15 11:54:34 +01:00
schema.js Added the newsletters table 2022-03-29 15:23:26 +02:00
validator.js Switch to @trghost/validator, remove validator 2021-06-16 08:11:22 +01:00