To create your own custom refactoring, simply create a class that implements the
liquibase. or liquibase. interface and
use the <custom> tag in your changeset.
If your change can be rolled back, implement the liquibase. interface as
well.
For a sample custom change class, see liquibase.change.custom.ExampleCustomSqlChange in the test sources.
| Modifier and Type | Interface and Description |
|---|---|
| public interface | CustomChange
Interface to implement when creating a custom change. |
| public interface | CustomSqlChange
Interface to implement when creating a custom change that generates SQL. |
| public interface | CustomSqlRollback
Interface to implement that allows rollback of a custom sql change. |
| public interface | CustomTaskChange
Interface to implement when creating a custom change that does not actually generate SQL. |
| public interface | CustomTaskRollback
Interface to implement that allows rollback of a custom task change. |
| Modifier and Type | Class and Description |
|---|---|
| public class | CustomChangeWrapper
Adapts CustomChange implementations to the standard change system used by Liquibase. |