Steve
Steve

Reputation: 55635

FlywayDB - afterBaseline

I have a clean DB that I want to run a "seeding" script on after the initial V1 migration.

Will the afterBaseline callback be called after an initial migration to a clean DB?

Upvotes: 1

Views: 92

Answers (1)

Steve
Steve

Reputation: 55635

This appears to only be called after the baseline command is executed, and not after the initial migration.

The solution I took was to create a "V2" migration that contained my DML/seeding data.

Upvotes: 1

Related Questions