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

Specify different username:password for Alembic than for SQLAlchemy #460

Closed
L0uisc opened this issue Apr 13, 2022 · 1 comment
Closed

Specify different username:password for Alembic than for SQLAlchemy #460

L0uisc opened this issue Apr 13, 2022 · 1 comment
Labels

Comments

@L0uisc
Copy link

L0uisc commented Apr 13, 2022

I want to be able to specify a username:password to Flask-Migrate with permissions to alter tables and drop and create tables, but I don't want my SQLAlchemy user to have those permissions. SQLAlchemy should only be able to insert, update, select and join. Is this possible at the moment? If so, how would I do that?

@miguelgrinberg
Copy link
Owner

This is unrelated to this package, and directly influenced by how you control your Flask configuration, from which the database URL is extracted. For example, if you set your database URL from an environment variable, then you can change the variable before you run a flask db command.

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

No branches or pull requests

2 participants