cmd/app generate cfg |
All comands related to generation you can find in this file cmd/app |
GlobalConfiguration.Postgres postgres = globalConfiguration.postgres(); FluentConfiguration fluentConfiguration = Flyway.configure() .dataSource(postgres.jdbcUrl(), postgres.users().flyway(), postgres.passwords().flyway()) .sqlMigrationPrefix("") .locations(postgres.locationMigration()) .baselineOnMigrate(true); Flyway flyway = fluentConfiguration.load(); flyway.migrate(); |
Where we connect GlobalConfiguration as a bean and get a subclass postgres() with all the setting for the database |