0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
ghost/core/server/data/schema
Daniel Lockyer f48a668671 Removed unused defaults from text columns in schema
refs https://github.com/TryGhost/Toolbox/issues/309

- I originally started looking at this because I wanted to change the default of
  `emails.recipient_filter` for old DBs to `status:-free`
- we changed these columns to a `text` type, which doesn't support
  defaults
- the tables already have defaults set in the model, so the only change
  needed here is to delete the `defaultTo` in the schema to avoid
  confusion
- on the way, I ended up fixing 51498abb5c too
2022-05-09 14:31:35 +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 Fixed multiple author fixture initializaion 2022-05-09 20:34:06 +08:00
commands.js Altered migration utility to always use algorithm=copy for MySQL (#14699) 2022-05-09 10:16:36 +01:00
index.js Moved checks into frontend data service 2022-04-05 15:23:00 +01:00
schema.js Removed unused defaults from text columns in schema 2022-05-09 14:31:35 +01:00
validator.js Fixed model validation erroneously triggering on non-nullable text fields 2022-05-05 14:56:59 +01:00