All Downloads are FREE. Search and download functionalities are using the official Maven repository.

se.fortnox.reactivewizard.dbmigrate.LiquibaseConfig Maven / Gradle / Ivy

The newest version!
package se.fortnox.reactivewizard.dbmigrate;

import se.fortnox.reactivewizard.config.Config;
import se.fortnox.reactivewizard.db.config.DatabaseConfig;

/**
 * Configure the database connection to use for liquibase migrations. This is usually the same configuration as for
 * "database" but you should use a different user, so that normal CRUD operations are not run with a user having
 * privileges to do CREATE/ALTER/DROP.
 * 

* Note that if you have multiple modules with migrations, you should make the fatjar (shade) with a single merged migrations.xml: * *

{@code
 * 
 *    
 *      migrations.xml
 *    
 * 
 * }
*/ @Config("liquibase-database") public class LiquibaseConfig extends DatabaseConfig { private String migrationsFile = "migrations.xml"; public String getMigrationsFile() { return migrationsFile; } public void setMigrationsFile(String migrationsFile) { this.migrationsFile = migrationsFile; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy