0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
ghost/core/server/models
Kevin Ansfield e57e19ec31
🏗 Migrated posts.page column to posts.type (#11111)
refs https://github.com/TryGhost/Ghost/issues/10922

- adds migrations to...
  1. add `post.type` column
  2. populate `post.type` column based on `post.page` value
  3. drop `post.page` column
- updates all code paths to work with `post.type` in place of `post.page`
- adds `nql-map-key-values` transformer for mapping `page`->`type` in `filter` params when using the v2 API
- modifies importer to handle `post.page`->`post.type` transformation when importing older export files
2019-09-16 11:51:54 +01:00
..
base 🏗 Migrated posts.page column to posts.type (#11111) 2019-09-16 11:51:54 +01:00
plugins 🏗 Migrated posts.page column to posts.type (#11111) 2019-09-16 11:51:54 +01:00
relations 🐛 Fixed field filtering for /authors/:id endpoints 2019-03-05 15:18:32 +08:00
action.js Added model implementation for actions 2019-02-06 21:36:09 +01:00
api-key.js Created DB Backup integration (#10974) 2019-08-02 17:28:02 +08:00
app-field.js
app-setting.js
app.js
author.js Added plugin based author and public tag models in API v2 (#10284) 2019-01-03 20:30:35 +01:00
index.js 🏗 Extracted post metadata in new post_meta table (#11102) 2019-09-16 14:15:55 +05:30
integration.js Ensured Admin API cannot fetch internal integrations (#10501) 2019-07-24 11:52:55 +02:00
invite.js Updated permissible methods for hasApiKeyPermissions (#9970) 2019-01-18 13:39:53 +01:00
member.js Added members related db changes and models 2018-12-11 11:53:55 +07:00
mobiledoc-revision.js
permission.js
post.js 🏗 Migrated posts.page column to posts.type (#11111) 2019-09-16 11:51:54 +01:00
posts-meta.js 🏗 Extracted post metadata in new post_meta table (#11102) 2019-09-16 14:15:55 +05:30
role.js Updated permissible methods for hasApiKeyPermissions (#9970) 2019-01-18 13:39:53 +01:00
session.js
settings.js Update Test & linting packages (major) (#10858) 2019-07-05 13:40:43 +02:00
subscriber.js Ensured consistency for event handlers in the model layer 2019-02-07 11:02:35 +01:00
tag-public.js Added plugin based author and public tag models in API v2 (#10284) 2019-01-03 20:30:35 +01:00
tag.js Reverted parent_id removal in tags in toJSON 2019-09-13 20:49:20 +02:00
user.js 🔥 Removed v0.1 leftover code in model layer (#11107) 2019-09-12 17:39:16 +02:00
webhook.js Ensured consistency for event handlers in the model layer 2019-02-07 11:02:35 +01:00