WIP: Db migration alterColumn ...

This commit is contained in:
Robin Bygrave
2015-08-10 14:26:47 +12:00
parent c0d4dac2b3
commit 845faf74ff
48 changed files with 6924 additions and 424 deletions
@@ -0,0 +1,42 @@
package com.avaje.ebean.config;
/**
* Configuration for the DB migration processing.
*/
public class DbMigrationConfig {
/**
* The application name which is used as the unique code when applying migrations.
*/
private String appName;
/**
* Path where migration
*/
private String resourcePath;
public String getAppName() {
return appName;
}
public void setAppName(String appName) {
this.appName = appName;
}
public String getResourcePath() {
return resourcePath;
}
public void setResourcePath(String resourcePath) {
this.resourcePath = resourcePath;
}
/**
* Load the settings from the PropertiesWrapper.
*/
public void loadSettings(PropertiesWrapper properties) {
appName = properties.get("migration.appName", appName);
resourcePath = properties.get("migration.resourcePath", resourcePath);
}
}