disableCheckConstraint
Disables a check constraint.
Available attributes
catalogName |
Name of the catalog |
|
all |
|
constraintName |
|
all |
all |
|
schemaName |
Name of the schema |
|
all |
|
tableName |
Name of the table |
all |
all |
|
XML example
<changeSet author="liquibase-docs" id="disableCheckConstraint-example">
<pro:disableCheckConstraint catalogName="cat"
constraintName="const_name"
schemaName="public"
tableName="person"/>
</changeSet>
YAML example
changeSet:
id: disableCheckConstraint-example
author: liquibase-docs
changes:
- disableCheckConstraint:
catalogName: cat
constraintName: const_name
schemaName: public
tableName: person
JSON example
{ "changeSet": { "id": "disableCheckConstraint-example", "author": "liquibase-docs", "changes": [ { "disableCheckConstraint": { "catalogName": "cat", "constraintName": "const_name", "schemaName": "public", "tableName": "person" } }] } }
SQL example
ALTER TABLE cat.[public].person NOCHECK CONSTRAINT const_name;
Database support
DB2/LUW |
Supported
|
Yes
|
DB2/z |
Supported
|
Yes
|
Derby |
Not Supported |
Yes
|
Firebird |
Not Supported |
Yes
|
H2 |
Not Supported |
Yes
|
HyperSQL |
Not Supported |
Yes
|
INGRES |
Not Supported |
Yes
|
Informix |
Not Supported |
Yes
|
MariaDB |
Not Supported |
Yes
|
MySQL |
Not Supported |
Yes
|
Oracle |
Supported
|
Yes
|
PostgreSQL |
Not Supported |
Yes
|
SQL Server |
Supported
|
Yes
|
SQLite |
Not Supported |
Yes
|
Sybase |
Not Supported |
Yes
|
Sybase Anywhere |
Not Supported |
Yes
|