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 66652b6ea9 Added validation to posts status column
refs https://github.com/TryGhost/Toolbox/issues/309

- this commit adds `isIn` validation to the `status` column on the
  `posts` table, with values pulled from the model: c0d82122b0/core/server/models/post.js (L28)
- this also adds a migration to update any posts with invalid statuses
  to `draft`
2022-05-10 18:05:18 +01:00
..
clients
default-settings Added version_notifications key to settings table 2022-04-21 20:34:19 +08:00
fixtures Added internal frontend integration 2022-05-10 11:43:07 +01: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 Added validation to posts status column 2022-05-10 18:05:18 +01:00
validator.js Fixed model validation erroneously triggering on non-nullable text fields 2022-05-05 14:56:59 +01:00