0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-17 23:44:39 -05:00
ghost/core/server/data/migrations/versions
Daniel Lockyer 63f62c3302 Migrated old recipient filters to NQL string format
refs https://github.com/TryGhost/Toolbox/issues/309

- we started off with "free" and "paid" in these columns but since moved
  to NQL strings
- there is code in Ghost to rewrite these values to NQL strings, but we
  still have posts/emails in the DB with these old values so they need
  to be updated
- once this migration is merged, we can probably clean a lot of that
  aliasing up
- this commit migrates values in `posts.email_recipient_filter` and
  `emails.recipient_filter` from `free` to `status:free` and `paid` to
  `status:-free`
- I've left the down as a no-op because we don't want to translate
  values back, and we don't know which ones we originally migrated in
  the first place
2022-05-09 13:43:46 +01:00
..
1.25 Added erroring migrations to the final minor of deleted majors 2022-04-28 15:37:10 +01:00
2.37 Added erroring migrations to the final minor of deleted majors 2022-04-28 15:37:10 +01:00
3.41 Added erroring migrations to the final minor of deleted majors 2022-04-28 15:37:10 +01:00
4.0 Update dependency @tryghost/security to v0.3.0 (#14718) 2022-05-06 17:53:10 +01:00
4.1 Switched to util for retrieving DB info in migrations 2022-03-02 15:05:55 +01:00
4.2
4.3
4.4
4.5
4.6
4.7
4.8
4.9
4.11
4.12
4.13
4.14
4.15
4.16
4.17
4.19
4.20 Switched to util for retrieving DB info in migrations 2022-03-02 15:05:55 +01:00
4.22
4.23
4.33 Added note for using id as slug for free tier 2022-03-11 18:08:47 +05:30
4.34
4.35 Switched to util for retrieving DB info in migrations 2022-03-02 15:05:55 +01:00
4.36
4.37 Switched to util for retrieving DB info in migrations 2022-03-02 15:05:55 +01:00
4.38 Switched products.visible for products.visibility (#14264) 2022-03-04 11:07:38 +00:00
4.39 Migrated visibility column from portal settings (#14253) 2022-03-07 11:38:39 +00:00
4.40 Enabled Admin integration for tiers and offers API (#14325) 2022-03-16 16:46:26 +05:30
4.42 Updated migration eslint rule to catch bad filenames 2022-04-05 11:50:39 +01:00
4.43 Added validations to table creation 2022-04-26 15:51:02 +01:00
4.44 Added offer_id column to members_stripe_customers_subscriptions (#14487) 2022-04-15 13:47:15 +02:00
4.45 Added version_notifications key to settings table 2022-04-21 20:34:19 +08:00
4.46 Fixed null values in settings default newsletter migration (#14638) 2022-05-02 12:16:58 +02:00
4.47 Updated migration to always set a value 2022-05-05 15:11:44 +01:00
5.0 Migrated old recipient filters to NQL string format 2022-05-09 13:43:46 +01:00