Skip to content

Commit 60ae080

Browse files
authored
Merge pull request quarkusio#47766 from gastaldi/docs_flyway
Document known Flyway issues and configuration examples
2 parents 1c093e3 + 92e1d19 commit 60ae080

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

docs/src/main/asciidoc/flyway.adoc

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -448,3 +448,27 @@ quarkus.openshift.init-task-defaults.wait-for-container.image=my/wait-for-image:
448448
----
449449

450450
**Note**: In this context globally means `for all extensions that support init task externalization`.
451+
452+
== Known Issues in Flyway
453+
454+
=== Oracle: Multiple schemas in Dev Services
455+
456+
When having multiple schemas in Oracle, you can use the `quarkus.flyway.schemas` property to specify the schemas that Flyway should manage.
457+
However, because this is executed in the DB as the `quarkus` user, you need to either give DBA privileges to the user that is executing the migration (`quarkus`) or perform the necessary DDLs before the Dev Service starts. This is done with the `quarkus.datasource.devservices.init-script-path` configuration.
458+
459+
==== Giving DBA privileges to the user
460+
461+
- In your application, create a SQL file named `001-devservice-init.sql` (for ordering purposes, it can be any name really) in your `src/main/resources` with the following content:
462+
463+
[source,sql]
464+
----
465+
ALTER SESSION SET CONTAINER=quarkus;
466+
GRANT DBA TO quarkus;
467+
----
468+
469+
- Add the following configuration to your `application.properties`:
470+
471+
[source,properties]
472+
----
473+
quarkus.datasource.devservices.init-script-path=001-devservice-init.sql
474+
----

0 commit comments

Comments
 (0)