flyway-play | Play modules for Flyway
kandi X-RAY | flyway-play Summary
kandi X-RAY | flyway-play Summary
Flyway module for Play 2.4 or later. It aims to be a substitute for play-evolutions.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of flyway-play
flyway-play Key Features
flyway-play Examples and Code Snippets
Community Discussions
Trending Discussions on flyway-play
QUESTION
I want to use Flyway (flyway-play) to do db migrations.
I have absolutely no problems connecting to the database with Slick, making queries and inserting new data etc. However, I can not get Flyway to work with it.
When I visit http://localhost:9000/@flyway/postgres
endpoint I get database postgres not found
. And in fact on http://localhost:9000/@flyway
I can see that there are no databases detected.
I have prepared migrations and placed them in the conf\db\migration\postgres
folder.
This is my configuration for the postgres
database:
ANSWER
Answered 2017-Nov-21 at 13:57I haven't tested it but it seems that the flyway plugin expects the database configuration to be under db.{dbname}
and following the default config
You can try to add this to your application.conf
:
QUESTION
evolution sql scripts should be named
- 1.sql,
- 2.sql,
- XXX.sql
according to documentation. https://www.playframework.com/documentation/2.5.x/Evolutions#Running-evolutions-using-compile-time-DI
Is there any possibility to change naming convention to
- 1_create__customers.sql
- 2_create__orders.sql
- 3_alter__customers__add__home_address.sql
like it RoR: http://edgeguides.rubyonrails.org/active_record_migrations.html#creating-a-standalone-migration
Yes, I evaluated https://github.com/flyway/flyway-play and we can switch to it.
Right now I'm looking for default play functionality.
...ANSWER
Answered 2017-Mar-31 at 07:42No, it's not possible, the source code:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install flyway-play
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page