Reputation: 11
I am working on a JAVA project without the Flyway library, the application uses a PosgreSQL database. The creation of the database, the tables, the indexes... were done via SQL direcement scripts executed on the database server.
I now want to use Flyway for future database modifications but I don't know if it is possible to integrate it on the fly? Can you confirm that this is possible? And if so, is there any particular configuration that needs to be set up?
Thank you very much.
Upvotes: 0
Views: 926
Reputation: 2775
You absolutely can. The core concept would be to ensure that you establish a baseline starting point for all future development. You can do this one of two ways. You can use the concept of Baseline Migrations to set up your existing scripts. Alternatively, you just ignore the existing structures (sort of) and establish where you are the beginning baseline. Then you create migrations from that point forward. Either way will work. It's down to you to decide which will work best in your situation.
Upvotes: 1