Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Flyway specific migration with csv files

Tags:

flyway

We are using Flyway to keep up-to-date many databases in our test environments with sql scripts and it works fine. But we have a special need to also update databases with csv files. I know Flyway offers some Java based migrations to handle more complicated updates. But the problem is that these Java classes have the wanted version in their names, that would oblige us to recompile the class each time we want to use it. It would be more simple if we could drop our csv files in migration directories exactly like we do with sql files. Then some specific Java code would handle these csv files to do the right update. So how can we extend Flyway with this specific code that would handle our csv files ? Thanks

like image 383
Patrice Favre Avatar asked Jul 24 '13 09:07

Patrice Favre


1 Answers

There is currently no support this. Sounds like the same issue as https://github.com/flyway/flyway/issues/469

I am still not sure how to resolve this without exposing too much of Flyway's internals.

like image 71
Axel Fontaine Avatar answered Sep 28 '22 06:09

Axel Fontaine