Skip to content

Support for database migration as an app #6035

@dsyer

Description

@dsyer

It is a common requirement to be able to run database migrations as a different user than the one that runs the main app. We already support that by allowing a separate DataSource to be configured for Flyway (and possibly Liquibase as well). We don't really have a convenient way to run that as a separate process though, which is kind of part of the same requirement (so that the admin user credentials can stay separate). Ideally, probably being able to run the application JAR with a switch of some sort would be the best way to do it. You can probably already do something with PropertiesLauncher but it's not very obvious, so we need at least a proof of concept and some documentation.

See also #787.

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: declinedA suggestion or change that we don't feel we should currently apply

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions