Top Description Classes
[default module]

Package liquibase.change.core


Technically, a Change expresses an intention for alter the structure of the Database. An example would be: "Drop all foreign keys from a table". However, it abstracts from the way this is actually archieved: While one DBMS might provide a syntax for that (maybe something like "ALTER TABLE myTable DROP ALL FOREIGN KEYS"), others do not have a 1:1 translation and need to perform the change in several steps (e.g. enumerating all foreign keys and then dropping them one-by-one).

This package contains all the possible basic Changes that should be possible with every DBMS supported by Liquibase. Most classes here extend the liquibase.change.AbstractChange class that provides the general frame for the Change.

Class Summary

Modifier and TypeClass and Description
public abstract class
AbstractModifyDataChange

Encapsulates common fields for update and delete changes.

public class
AddAutoIncrementChange

Makes an existing column into an auto-increment column.

public class
AddColumnChange

Adds a column to an existing table.

public class
AddDefaultValueChange

Sets a new default value to an existing column.

public class
AddForeignKeyConstraintChange

Adds a foreign key constraint to an existing column.

public class
AddLookupTableChange

Extracts data from an existing column to create a lookup table.

public class
AddNotNullConstraintChange

Adds a NOT NULL constraint to an existing column.

public class
AddPrimaryKeyChange

Creates a primary key out of an existing column or set of columns.

public class
AddUniqueConstraintChange

Adds a unique constraint to an existing column.

public class
AlterSequenceChange

Modifies properties of an existing sequence.

public class
CreateIndexChange

Creates an index on an existing column.

public class
public class
CreateSequenceChange

Creates a new sequence.

public class
CreateTableChange

Creates a new table.

public class
CreateViewChange

Creates a new view.

public class
public class
public class
DropColumnChange

Drops an existing column from a table.

public class
DropDefaultValueChange

Removes the default value from an existing column.

public class
DropForeignKeyConstraintChange

Drops an existing foreign key constraint.

public class
DropIndexChange

Drops an existing index.

public class
DropNotNullConstraintChange

Drops a not-null constraint from an existing column.

public class
DropPrimaryKeyChange

Removes an existing primary key.

public class
public class
DropSequenceChange

Drops an existing sequence.

public class
DropTableChange

Drops an existing table.

public class
DropUniqueConstraintChange

Removes an existing unique constraint.

public class
DropViewChange

Drops an existing view.

public class
public class
ExecuteShellCommandChange

Executes a given shell executable.

public class
InsertDataChange

Inserts data into an existing table.

public class
public class
public class
public class
MergeColumnChange

Combines data from two existing columns into a new column and drops the original columns.

public class
public class
public class
RawSQLChange

Allows execution of arbitrary SQL.

public class
RenameColumnChange

Renames an existing column.

public class
RenameSequenceChange

Renames an existing table.

public class
RenameTableChange

Renames an existing table.

public class
RenameViewChange

Renames an existing view.

public class
public class
public class
SQLFileChange

Represents a Change for custom SQL stored in a File.

public class
public class
public class