Top Description Fields Constructors Methods
liquibase.change.core

public Class DropIndexChange

extends AbstractChange
Class Inheritance
Annotations
@DatabaseChange
name:dropIndex
description:Drops an existing index
priority:1
appliesTo:index
Static Imports
liquibase.change.ChangeParameterMetaData.ALL

Drops an existing index.

Field Summary

Modifier and TypeField and Description
private String
private String
private String
private String
private String
Inherited from liquibase.change.AbstractChange:
NODENAME_COLUMN

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public ChangeStatus
checkStatus(Database database)

Overrides liquibase.change.AbstractChange.checkStatus.

Implements liquibase.change.Change.checkStatus.

Validate that this change executed successfully against the given database.

public SqlStatement[]
generateStatements(Database database)

Implements liquibase.change.Change.generateStatements.

Generates the SqlStatement objects required to run the change for the given database.

public String
public String
public String
getConfirmationMessage()

Implements liquibase.change.Change.getConfirmationMessage.

Confirmation message to be displayed after the change is executed.

public String
public String
public String
public String
public void
setAssociatedWith(String associatedWith)

public void
setCatalogName(String catalogName)

public void
setIndexName(String indexName)

public void
setSchemaName(String schemaName)

public void
setTableName(String tableName)

Inherited from liquibase.change.AbstractChange:
createChangeMetaDatacreateChangeParameterMetadatacreateDescriptionMetaDatacreateEmptyColumnConfigcreateExampleValueMetaDatacreateInversescreateMustEqualExistingMetaDatacreateRequiredDatabasesMetaDatacreateSerializationTypeMetaDatacreateSinceMetaDatacreateSupportedDatabasesMetaDatacustomLoadLogicequalsfinishInitializationgenerateCheckSumgenerateRollbackStatementsgenerateRollbackStatementsVolatilegenerateStatementsVolatilegetAffectedDatabaseObjectsgetChangeSetgetDescriptiongetExcludedFieldFiltersgetResourceAccessorgetSerializableFieldNamespacegetSerializableFieldsgetSerializableFieldTypegetSerializableFieldValuegetSerializedObjectNamehashCodeisInvalidPropertyloadmodifyserializeserializeValuesetChangeSetsetResourceAccessorshouldExecuteChangesupportssupportsRollbacktoStringvalidatewarn

Field Detail

associatedWithback to summary
private String associatedWith
catalogNameback to summary
private String catalogName
indexNameback to summary
private String indexName
schemaNameback to summary
private String schemaName
tableNameback to summary
private String tableName

Constructor Detail

DropIndexChangeback to summary
public DropIndexChange()

Method Detail

checkStatusback to summary
public ChangeStatus checkStatus(Database database)

Overrides liquibase.change.AbstractChange.checkStatus.

Implements liquibase.change.Change.checkStatus.

Doc from liquibase.change.Change.checkStatus.

Validate that this change executed successfully against the given database. This will check that the update completed at a high level plus check details of the change. For example, a change to add a column will check that the column exists plus data type, default values, etc.

Annotations
@Override
generateStatementsback to summary
public SqlStatement[] generateStatements(Database database)

Implements liquibase.change.Change.generateStatements.

Doc from liquibase.change.Change.generateStatements.

Generates the SqlStatement objects required to run the change for the given database.

NOTE: This method may be called multiple times throughout the changelog execution process and may be called in documentation generation and other integration points as well.

If this method reads from the current database state or uses any other logic that will be affected by whether previous changeSets have ran or not, you must return true from generateStatementsVolatile.
Annotations
@Override
getAssociatedWithback to summary
public String getAssociatedWith()
Annotations
@DatabaseChangeProperty
isChangeProperty:false
description:Index associations. Valid values: primaryKey, foreignKey, uniqueConstriant, none
getCatalogNameback to summary
public String getCatalogName()
Annotations
@DatabaseChangeProperty
mustEqualExisting:index.catalog
since:3.0
description:Name of the database catalog
supportsDatabase:all
getConfirmationMessageback to summary
public String getConfirmationMessage()

Implements liquibase.change.Change.getConfirmationMessage.

Doc from liquibase.change.Change.getConfirmationMessage.

Confirmation message to be displayed after the change is executed. Should include relevant configuration settings to make it as helpful as possible. This method may be called outside the changelog execution process, such as in documentation generation.

Annotations
@Override
getIndexNameback to summary
public String getIndexName()
Annotations
@DatabaseChangeProperty
mustEqualExisting:index
description:Name of the index to drop
supportsDatabase:all
getSchemaNameback to summary
public String getSchemaName()
Annotations
@DatabaseChangeProperty
mustEqualExisting:index.schema
description:Name of the database schema
supportsDatabase:all
getSerializedObjectNamespaceback to summary
public String getSerializedObjectNamespace()

Overrides liquibase.change.AbstractChange.getSerializedObjectNamespace.

Implements liquibase.serializer.LiquibaseSerializable.getSerializedObjectNamespace.

Annotations
@Override
getTableNameback to summary
public String getTableName()
Annotations
@DatabaseChangeProperty
mustEqualExisting:index.table
description:Name of the indexed table
requiredForDatabase:sybase, mysql, mssql, mariadb, asany
supportsDatabase:all
setAssociatedWithback to summary
public void setAssociatedWith(String associatedWith)
setCatalogNameback to summary
public void setCatalogName(String catalogName)
setIndexNameback to summary
public void setIndexName(String indexName)
setSchemaNameback to summary
public void setSchemaName(String schemaName)
setTableNameback to summary
public void setTableName(String tableName)