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

Error: migrate: "alter" strategy is not supported in production, please change to migrate: "safe". #48

Open
xgfd opened this issue Aug 23, 2016 · 0 comments

Comments

@xgfd
Copy link

xgfd commented Aug 23, 2016

I'm getting the error in title in a production environment. The reason is that the default value of migrate of models is 'alter' in waterline. As suggested in this comment, adding the follwing

var options = {
    // other options
    defaults: {
        migrate: 'safe',
    }
}

OpenIDConnect.oidc(options);

can potentially resolve the issue. However the defaults option won't be forwarded to initialise waterline.

I probably missed something but I couldn't find an easy way to modify the migrate option of the underlying waterline, unless initialising waterline completely by myself and passing it to OpenIDConnect in the option.

Any fix to this?

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

No branches or pull requests

1 participant