0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-10 23:36:14 -05:00
ghost/core/server/data/migrations/versions
Kevin Ansfield 1bc57b584a
Added posts_meta.feature_image_{alt,caption} columns (#13030)
refs https://github.com/TryGhost/Team/issues/770

We want post feature image functionality to better match what's available inside the editor, to do that we'll need somewhere to store alt and caption meta data. `posts_meta` chosen because even though we want to make this generic for other tables in the future those tables also have a `feature_image` (or closely related) field.

- updated schema with new columns
- added migration to create columns
- cleaned new columns from API output
  - not output on v2/v3
  - conditionally output on v4/canary output based on labs flag
- bumped `@tryghost/admin-api-schema` to allow new columns through in canary API requests
  - silently clean properties from input when labs flag is disabled
  - updated acceptance tests so they fail if `admin-api-schema` is not letting the new fields through
2021-06-10 20:35:56 +01:00
..
1.3 Refactored 'add column' migrations to use helper 2020-11-25 13:56:10 +00:00
1.4 Refactored 'add column' migrations to use helper 2020-11-25 13:56:10 +00:00
1.5 Refactored 'add column' migrations to use helper 2020-11-25 13:56:10 +00:00
1.7
1.9
1.13 Refactored 'add column' migrations to use helper 2020-11-25 13:56:10 +00:00
1.18 Refactored 'add table' migrations to use helper 2020-11-25 13:56:10 +00:00
1.19
1.20
1.21
1.22 Updated bson-objectid calls to match API change 2021-04-21 16:23:52 +01:00
1.25
2.0 Fixed mobiledoc errors when upgrading from v1/v2 to v4 (#12741) 2021-03-09 10:51:44 +00:00
2.2 Refactored 'add table' migrations to use helper 2020-11-25 13:56:10 +00:00
2.3 Refactored 'add column' migrations to use helper 2020-11-25 13:56:10 +00:00
2.6
2.8 Refactored 'add table' migrations to use helper 2020-11-25 13:56:10 +00:00
2.13
2.14 Refactored 'add table' migrations to use helper 2020-11-25 13:56:10 +00:00
2.15 Refactored 'add column' migrations to use helper 2020-11-25 13:56:10 +00:00
2.16
2.17 Refactored 'add column' migrations to use helper 2020-11-25 13:56:10 +00:00
2.18
2.21
2.22
2.27 Added missing Bluebird requires 2020-11-05 11:55:14 +00:00
2.28 Fixed typo in migration to add backupContent permission (#12777) 2021-03-18 14:52:12 +00:00
2.29 Refactored column migrations to use helpers (#12360) 2020-11-16 11:55:51 +00:00
2.31 Refactored column migrations to use helpers (#12360) 2020-11-16 11:55:51 +00:00
2.32 Refactored column migrations to use helpers (#12360) 2020-11-16 11:55:51 +00:00
2.33
2.34 Refactored 'add table' migrations to use helper 2020-11-25 13:56:10 +00:00
2.35 Refactored column migrations to use helpers (#12360) 2020-11-16 11:55:51 +00:00
2.37
3.0 Updated bson-objectid calls to match API change 2021-04-21 16:23:52 +01:00
3.1 Refactored 'add table' migrations to use helper 2020-11-25 13:56:10 +00:00
3.2 Refactored column migrations to use helpers (#12360) 2020-11-16 11:55:51 +00:00
3.6 Refactored 'add table' migrations to use helper 2020-11-25 13:56:10 +00:00
3.7
3.8 Refactored column migrations to use helpers (#12360) 2020-11-16 11:55:51 +00:00
3.9
3.11
3.12
3.18
3.19
3.22 Updated bson-objectid calls to match API change 2021-04-21 16:23:52 +01:00
3.23 Updated bson-objectid calls to match API change 2021-04-21 16:23:52 +01:00
3.24 Added missing Bluebird requires 2020-11-05 11:55:14 +00:00
3.25
3.26
3.29
3.30
3.32
3.33 Refactored 'add table' migrations to use helper 2020-11-25 13:56:10 +00:00
3.34
3.35 Refactored column migrations to use helpers (#12360) 2020-11-16 11:55:51 +00:00
3.36
3.37
3.38 🐛 Fixed migration for SQLite3 (#12371) 2020-11-17 16:39:42 +00:00
3.39 Added migrations for email analytics (#12387) 2020-11-25 17:48:24 +00:00
3.40 Added members.email_{count,opened_count} column migrations (#12470) 2020-12-09 12:21:56 +00:00
3.41 Added FirstPromoter Integration (#12540) 2021-01-15 19:05:15 +05:30
4.0 Fixed no-restricted-require warning for core/shared/url-utils.js 2021-05-25 21:13:57 +01:00
4.1 🐛 Fixed unable to delete member (#12784) 2021-03-18 22:20:58 +05:30
4.2 Added migration to fix incorrect mrr events (#12837) 2021-04-06 21:14:54 +05:30
4.3 Updated active column type from boolean -> bool 2021-05-07 16:37:38 +01:00
4.4 Migrated 'invite' to 'all' for sites that were not truly invite-only (#12907) 2021-05-04 09:50:29 +01:00
4.5 Added migration to rename product as site title 2021-05-11 00:00:12 +05:30
4.6 Replaced members 'comped' status with 'paid' 2021-05-19 18:49:18 +01:00
4.7 🏗 Added "labs" setting enabling feature flags 2021-06-08 02:18:17 +12:00
4.8 Added posts_meta.feature_image_{alt,caption} columns (#13030) 2021-06-10 20:35:56 +01:00