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

fix(databaseSources): be able to provide every types supported by flyway #23

Open
davinkevin opened this issue Jun 18, 2020 · 0 comments

Comments

@davinkevin
Copy link
Contributor

The documentation provides an example for "flyway" usage with this jooq plugin.

When I try to use databaseSources with a value like listOf("filesystem:../database/migrations") this leads to this kind of error:

> Task :jooq-codegen-primary FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':jooq-codegen-primary'.
> Cannot convert URL 'filesystem:../database/migrations' to a file.

I need to use the filesystem:.. format of URL because my changelog is managed in another folder of my repository, outside of my kotlin project (because we generate an init-db container with this source files).

Do you think it could be possible to support this kind of file path?

davinkevin added a commit to davinkevin/Podcast-Server that referenced this issue Jun 27, 2020
Following rohanprabhu/kotlin-dsl-gradle-jooq-plugin#23, we choose to copy files into buildDir before flywayMigrate operations. Thanks to that, we can use the same url between flyWay and JOOQ plugin.

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

No branches or pull requests

1 participant