How to create a database with flyway?

前端 未结 5 932
执念已碎
执念已碎 2020-12-25 11:55

Question: Is it possible to create a new DB in a migration script and then connect to it? How?

My Scenario: I\'m trying to use flyw

5条回答
  •  不知归路
    2020-12-25 12:43

    I dont know if this is even possible to do in flyway.

    Flyway is intended to connect to an already existing database (whether it is empty or not). It also would be a good practice to keep your database creation separate from your database migrations.

提交回复
热议问题