0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00
ghost/core/server/data/migrations
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
..
hooks
init Removed unnecessary checks during initial DB init 2022-02-21 08:44:40 +01:00
utils Added migration utils for removing a permission 2022-05-10 13:21:26 +01:00
versions Added validation to posts status column 2022-05-10 18:05:18 +01:00