Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

helper/plugin: Allow missing MigrateState for provider flatmap state upgrades #21625

Merged
merged 1 commit into from
Jun 10, 2019

Commits on Jun 6, 2019

  1. helper/plugin: Allow missing MigrateState for provider flatmap state …

    …upgrades
    
    Reference: hashicorp/terraform-provider-aws#8828
    
    Prior to Terraform 0.12, providers were not required to implement the `MigrateState` function when increasing the `SchemaVersion` above `0`. Effectively there is no flatmap state difference between version 0 and defined `SchemaVersion` or lowest `StateUpgrader` `Version` (whichever is lowest) when `MigrateState` is undefined, so here we remove the error and increase the schema version automatically.
    bflad committed Jun 6, 2019
    Configuration menu
    Copy the full SHA
    94078f9 View commit details
    Browse the repository at this point in the history