Wednesday, April 15, 2015

FlyMigrate - DB in postgres



Try creating Schema in following way.

1. Drop cascade public schema in your sthana database
2. create public schema again. It will be schema without sthana tables.
2. cd to $HOME/sthana/sthana/src/sthana/sthana-core
3.  gradle flywayMigrate

This 3rd command should automatically create a schema with sthana tables for you. When you create data SQL, it should look like V2__data.sql. Put V2__data.sql in same folder as V1__init.sql. Then if you run "gradle flywayMigrate" your database should get updated with data also.



No comments:

Post a Comment