问题
I'm really struggling to understand how I can use flyway to manage an oracle database.
The database in question has 3 schemas.
If I stipulate the 3 schemas in the flyway plugin definition in my gradle file, how do I manage the creation of the users themselves, and the tablespaces they use?
Any tips or suggestions would be more than welcome.
Creating a DDL for a baseline for flyway
回答1:
If You would create the DB with some limited super-user account, You could use it to create users and tablespaces, having a separate Flyway migration instance. That is:
- Flyway migration by super-user from
sql/db-configuration/using dedicatedflyway.conf- creates users, tablespaces, and all other configuration
- Flyway migration by application-user from
sql/app-code/using dedicatedflyway.conf- regular application code
来源:https://stackoverflow.com/questions/54941316/is-it-possible-to-manage-an-oracle-database-with-flyway