Ghost/core/server/data/schema
Kevin Ansfield 1dc0405803
Added migration to populate settings.{group,flags} (#11954)
refs https://github.com/TryGhost/Ghost/issues/10318

- maps old `settings.type` values to new `settings.type/group` values
  - uses an explicit map so that we don't lose information and can safely roll back even though we're modifying `settings.type` too
  - updates `settings.type` values too to keep code working while we switch to using `settings.group`
- sets the `settings.group` value for all settings which are keeping the same group as their current type
- adapts `settings.type` validations to match new groups
- adds flags to specific settings, both in the migration for existing settings records and in default-settings.json for new settings records
2020-06-24 12:38:18 +01:00
..
clients Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
fixtures Added permission for auth:members_stripe_connect 2020-06-02 15:28:42 +02:00
checks.js Update Test & linting packages (major) (#10858) 2019-07-05 13:40:43 +02:00
commands.js Added migration to add settings.{group,flags} columns (#11951) 2020-06-24 11:58:15 +01:00
default-settings.json Added migration to populate settings.{group,flags} (#11954) 2020-06-24 12:38:18 +01:00
index.js 🔥 remove database version (#7894) 2017-01-26 12:12:00 +00:00
schema.js Added migration to populate settings.{group,flags} (#11954) 2020-06-24 12:38:18 +01:00