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
Daniel Lockyer b788604e15
Added erroring migrations to the final minor of deleted majors
refs https://github.com/TryGhost/Toolbox/issues/300

- the previous commit deleted all v1/v2/v3 migrations
- Ghost-CLI forces you to update to the latest minor in your major
  before you upgrade but people who aren't on the latest minor, who don't
  use Ghost-CLI and try to update to v5 might have missed migrations that
  I've just deleted
- the way to protect against this is to add some migrations for the last
  minor in each major, that will throw an error if they get run
- this uses a feature of knex-migrator where it will always try to
  backfill missing migrations when you run Ghost, so these new migrations
  should _only_ be run if the Ghost DB hasn't already run the same number
  of migrations in that minor
- by throwing an error, it'll cause knex-migrator to fail and the user
  shouldn't be able to update, which is good
- v2 and v3 only have 1 migration so I can just replace that, but v1 has
  2 migrations. I think it makes more sense that the first one errors
  and the second one is a no-op otherwise it'll run the first migration,
  succeed, run the second, error, and then rollback the second and first
  one
- the new migration names are different from the original ones but that
  shouldn't matter because we're not comparing nor storing them
2022-04-28 15:37:10 +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 Switched to util for retrieving DB info in migrations 2022-03-02 15:05:55 +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 Added lint rules for migrations 2021-11-29 16:21:43 +00:00
4.4 Added lint rules for migrations 2021-11-29 16:21:43 +00:00
4.5
4.6 Added lint rules for migrations 2021-11-29 16:21:43 +00:00
4.7
4.8 Added lint rules for migrations 2021-11-29 16:21:43 +00:00
4.9 Added lint rules for migrations 2021-11-29 16:21:43 +00:00
4.11
4.12 Added lint rules for migrations 2021-11-29 16:21:43 +00:00
4.13
4.14 Added lint rules for migrations 2021-11-29 16:21:43 +00:00
4.15
4.16
4.17 Added offers table (#13381) 2021-10-01 12:18:33 +02:00
4.19 Prefixed migration with 01 2021-10-13 17:37:39 +02:00
4.20 Switched to util for retrieving DB info in migrations 2022-03-02 15:05:55 +01:00
4.22 Moved launchComplete user setting as global editor setting (#13703) 2021-11-04 18:03:51 +05:30
4.23 Added lint rules for migrations 2021-11-29 16:21:43 +00:00
4.33 Added note for using id as slug for free tier 2022-03-11 18:08:47 +05:30
4.34 Added welcome_page_url column to products table 2022-01-26 11:44:40 +02:00
4.35 Switched to util for retrieving DB info in migrations 2022-03-02 15:05:55 +01:00
4.36 Added the last_seen_at column to members 2022-02-09 11:57:45 +01:00
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 Revert "Dropped nullable from subscribe events' newsletter id (#14598)" 2022-04-27 20:01:32 +01:00