Loading initial schema into Flyway table for existing database -


i have read through flyway (2.1.1) documentation, , wanted little clarification on 1 point...

i dumped current ddl our production db file, v1__baseddl.sql. verified our qa database has schema matched production.

i want put our qa database under flyway management (followed production). using flyway via api. called flyway.setinitversion(1), flyway.init(), , expecting find v1__baseddl.sql file, , set version 1 in flyway.schema_version table, not execute contents (since schema exists in database). in schema_version table, seeing row initial version, script, has << flyway init >>.

how can "load" initial schema file (v1__baseddl.sql) schema_version table version 1?

to change description, have call flyway.setinitdescription("baseddl")


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -