Skip to content
This repository has been archived by the owner on Nov 25, 2024. It is now read-only.

Update uses old migration path #103

Open
garethbowen opened this issue Feb 29, 2016 · 0 comments
Open

Update uses old migration path #103

garethbowen opened this issue Feb 29, 2016 · 0 comments
Labels

Comments

@garethbowen
Copy link

An app can specify a migration_path to migrate the app_settings between versions which is a URL to an endpoint which takes the current settings and returns the migrated settings.

Currently the migration uses the migration_path in the old ddoc rather than the possibly updated one in the new ddoc. This means if the migration_path...

  • ... is added between the old and new versions it won't be executed
  • ... is modified between the old and new versions the wrong endpoint will be run
  • ... is deleted between the old and new versions the migration request will 404

Modify the migration code to use the new ddoc configuration rather than the old one.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant