0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-10 23:36:14 -05:00
ghost/core/server/data/schema
Daniel Lockyer 51498abb5c
Fixed model validation erroneously triggering on non-nullable text fields
refs https://github.com/TryGhost/Toolbox/issues/309

- I've just ran into a problem when deleting the `defaultTo` field on a
  non-nullable `text` column in our schema because this validation
  thinks there should be a value set
- `text` fields cannot have defaults so the schema is incorrect, and the
  validation triggering is a bug that's preventing it from being
  cleaned up
- the default is defined on the model so I don't think we're losing
  anything here
2022-05-05 14:56:59 +01:00
..
clients Switched to mysql2 library 2022-03-03 09:59:37 +01:00
default-settings Added version_notifications key to settings table 2022-04-21 20:34:19 +08:00
fixtures Added show_header_name column to newsletters table 2022-04-26 12:31:34 +01:00
commands.js Fixed created_at newsletter migration (#14568) 2022-04-26 12:31:34 +01:00
index.js Moved checks into frontend data service 2022-04-05 15:23:00 +01:00
schema.js Added deprecation comments and notes to schema.js 2022-05-02 11:05:13 +01:00
validator.js Fixed model validation erroneously triggering on non-nullable text fields 2022-05-05 14:56:59 +01:00