2

I am using flyway to migrate my database schema and I feel it is really powerful to keep my database instances schemas update. Now I have a new requirement that I need some initial data on tables when release my application. Whether I can use flyway to do that? If yes, how?

1 Answer 1

2

Use a regular migration with insert statements.

Sign up to request clarification or add additional context in comments.

2 Comments

Will it be inserted multiple times?
@JoeyYiZhao no flyway only does the migration for a given migrationfile one time.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.