liquibase.change.core.RawSQLChange Maven / Gradle / Ivy
package liquibase.change.core;
import liquibase.change.AbstractSQLChange;
import liquibase.change.ChangeMetaData;
/**
* Allows execution of arbitrary SQL. This change can be used when existing changes are either don't exist,
* are not flexible enough, or buggy.
*/
public class RawSQLChange extends AbstractSQLChange {
private String comments;
public RawSQLChange() {
super("sql", "Custom SQL", ChangeMetaData.PRIORITY_DEFAULT);
}
public RawSQLChange(String sql) {
this();
setSql(sql);
}
public String getComments() {
return comments;
}
public void setComments(String comments) {
this.comments = comments;
}
public String getConfirmationMessage() {
return "Custom SQL executed";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy