Ghost/core/server/data/migrations/versions/3.29
Kevin Ansfield 752c1022f9 🐛 Fixed failing migration from <2.34 to 3.29
closes https://github.com/TryGhost/Ghost/issues/12129

Migrations were failing when upgrading from a version that didn't include stripe member subscriptions table. The `up` migration was checking for the existence of a unique index that was added to the schema in 3.29 but it was using the wrong variable name which meant that it would never return true for an existing index. For most migrations this worked because the index existed but when through 2.34 the table was created from scratch and did included the index at that point.

- fixed variable name and re-ordered variable assignment for better code locality that would have made the typo more visible
2020-08-17 18:31:00 +01:00
..
01-remove-duplicate-subscriptions.js Cleaned up members_stripe_* tables on MySQL (#12103) 2020-08-06 11:13:41 +02:00
02-remove-duplicate-customers.js Cleaned up members_stripe_* tables on MySQL (#12103) 2020-08-06 11:13:41 +02:00
03-remove-orphaned-customers.js Cleaned up members_stripe_* tables on MySQL (#12103) 2020-08-06 11:13:41 +02:00
04-remove-orphaned-subscriptions.js Cleaned up members_stripe_* tables on MySQL (#12103) 2020-08-06 11:13:41 +02:00
05-add-member-constraints.js 🐛 Fixed failing migration from <2.34 to 3.29 2020-08-17 18:31:00 +01:00