Flyway Desktop migrations file name structure
Flyway handles files following this name structure:
prefixVERSIONseparatorDESCRIPTIONsuffix
Where, "prefix", "separator" and "suffix" can be set in flyway.conf file (or not if you want to work with the default values for them).
More specifically, Flyway Desktop, generates migration files like the following:
V002_20220413203750__Description.sql
Thanks in advance!
Lauther
Best Answers
-
Peter_Laws Posts: 289 Silver 2
Hi Lauther,
Thanks for the question. Yes as you've observed, the default implementation contains a timestamp to maximise the probability that no duplicate migration file names may be created. However this may be more caution that your use case merits, especially if you only have a few people generating migrations.
Happily Flyway Desktop will seeks to match the format of the preceding migration, as shown here. I've removed the timestamp on my most recent migration (003), and the subsequent file name offered by Flyway Desktop when I generate my next migration is 004.
Hope this helps!
-
Lauther Posts: 16 Bronze 2Hello Peter_Laws
That's great!... We are running a project and currently we are in the stage to define standards and processes to work with Redgate Deploy and that was one of the doubts raised by project team... At first glance, yeah, the "out of the box" setting to handle versions of Flyway Desktop seems to be the appropriated, but we wanted to explore alternatives.
Many thanks for your answer!
Lauher
Answers