justmike1 opened a new issue, #29570:
URL: https://github.com/apache/superset/issues/29570
## [SIP] Proposal for Ability to connect with a second user to run db
migrations only
### Motivation
We have internal policy which the flyway or application migrations will run
on certain user which has ability to create/delete tables, and another user for
runtime which can only write or read from existing tables
### Proposed Change
currently I use:
```py
SQLALCHEMY_DATABASE_URI =
f"postgresql+psycopg2://{env('DB_USER')}:{env('DB_PASS')}@{env('DB_HOST')}:{env('DB_PORT')}/{env('DB_NAME')}?currentSchema={env('DB_SCHEMA',
'public')}"
superset db upgrade
```
I would like:
```(shell)
superset db upgrade --user flywayuser --password admin
```
### New or Changed Public Interfaces
NONE
### New dependencies
NONE
### Migration Plan and Compatibility
Add default fallback when the parameter isn't included to use the already
connected user, thus existing users doesn't need to do anything
### Rejected Alternatives
NONE
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]