0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-10 23:36:14 -05:00
ghost/core/server
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
..
adapters Replaced constants file with @tryghost/constants 2020-08-11 12:51:16 +01:00
api Added validation layer to members import endpoint (#12131) 2020-08-17 23:28:57 +12:00
data 🐛 Fixed failing migration from <2.34 to 3.29 2020-08-17 18:31:00 +01:00
lib Extracted promise libs and history into @tryghost/promise 2020-08-11 18:44:21 +01:00
models Replaced all usage of member models with members-api (#12117) 2020-08-12 14:17:44 +01:00
public Renamed members ssr + api endpoints 2020-04-30 19:00:37 +01:00
services Fixed parameter naming for members importer 2020-08-13 21:08:34 +12:00
translations Added an additional log to notify shutdown start 2020-08-10 14:53:05 +01:00
views Updated head to only output custom favicons (#11949) 2020-06-30 15:07:08 +01:00
web Added job-manager & wired up shutdown and testmode 2020-08-11 21:31:34 +01:00
analytics-events.js Moved config from server to shared (#11850) 2020-05-27 18:47:53 +01:00
ghost-server.js Removed workaround for intermittent ghost-server logging 2020-08-13 18:45:51 +01:00
index.js Added job-manager & wired up shutdown and testmode 2020-08-11 21:31:34 +01:00
overrides.js
update-check.js Moved core/server/lib/common/logging to core/shared/logging (#11857) 2020-05-28 19:30:23 +01:00