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 AbstractChange
class that provides the general
frame for the Change.
-
Class Summary Class Description AbstractModifyDataChange Encapsulates common fields for update and delete changes.AddAutoIncrementChange Makes an existing column into an auto-increment column.AddColumnChange Adds a column to an existing table.AddDefaultValueChange Sets a new default value to an existing column.AddForeignKeyConstraintChange Adds a foreign key constraint to an existing column.AddLookupTableChange Extracts data from an existing column to create a lookup table.AddNotNullConstraintChange Adds a NOT NULL constraint to an existing column.AddPrimaryKeyChange Creates a primary key out of an existing column or set of columns.AddUniqueConstraintChange Adds a unique constraint to an existing column.AlterSequenceChange Modifies properties of an existing sequence.CreateIndexChange Creates an index on an existing column.CreateProcedureChange CreateSequenceChange Creates a new sequence.CreateTableChange Creates a new table.CreateViewChange Creates a new view.DeleteDataChange DropAllForeignKeyConstraintsChange DropColumnChange Drops an existing column from a table.DropDefaultValueChange Removes the default value from an existing column.DropForeignKeyConstraintChange Drops an existing foreign key constraint.DropIndexChange Drops an existing index.DropNotNullConstraintChange Drops a not-null constraint from an existing column.DropPrimaryKeyChange Removes an existing primary key.DropProcedureChange DropSequenceChange Drops an existing sequence.DropTableChange Drops an existing table.DropUniqueConstraintChange Removes an existing unique constraint.DropViewChange Drops an existing view.EmptyChange ExecuteShellCommandChange Executes a given shell executable.InsertDataChange Inserts data into an existing table.LoadDataChange LoadDataChange.LoadDataRowConfig LoadDataColumnConfig LoadUpdateDataChange MergeColumnChange Combines data from two existing columns into a new column and drops the original columns.ModifyDataTypeChange OutputChange RawSQLChange Allows execution of arbitrary SQL.RenameColumnChange Renames an existing column.RenameSequenceChange Renames an existing table.RenameTableChange Renames an existing table.RenameViewChange Renames an existing view.SetColumnRemarksChange SetTableRemarksChange SQLFileChange Represents a Change for custom SQL stored in a File.StopChange TagDatabaseChange UpdateDataChange -
Enum Summary Enum Description LoadDataChange.LOAD_DATA_TYPE -
Exception Summary Exception Description StopChange.StopChangeException