0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
ghost/core/server/data
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
..
db Moved core/server/lib/common/logging to core/shared/logging (#11857) 2020-05-28 19:30:23 +01:00
exporter Extracted core/server/lib/security to @tryghost/security package 2020-08-11 14:06:50 +01:00
importer Extracted promise libs and history into @tryghost/promise 2020-08-11 18:44:21 +01:00
migrations 🐛 Fixed failing migration from <2.34 to 3.29 2020-08-17 18:31:00 +01:00
schema Extracted promise libs and history into @tryghost/promise 2020-08-11 18:44:21 +01:00
validation Improved settings validation (#12048) 2020-07-15 17:11:27 +02:00