Enable Check Constraint
Name | Description |
---|---|
catalogName | Name of the catalogE.g. 'cat' |
constraintName | E.g. 'const_name' |
schemaName | Name of the schemaE.g. 'public' |
tableName | Name of the tableE.g. 'person' |
<changeSet author="liquibase-docs" id="enableCheckConstraint-example">
<pro:enableCheckConstraint catalogName="cat"
constraintName="const_name"
schemaName="public"
tableName="person"/>
</changeSet>
changeSet:
id: enableCheckConstraint-example
author: liquibase-docs
changes:
- enableCheckConstraint:
catalogName: cat
constraintName: const_name
schemaName: public
tableName: person
{
"changeSet": {
"id": "enableCheckConstraint-example",
"author": "liquibase-docs",
"changes": [
{
"enableCheckConstraint": {
"catalogName": "cat",
"constraintName": "const_name",
"schemaName": "public",
"tableName": "person"
}
}]
}
}
ALTER TABLE cat.[public].person WITH CHECK CHECK CONSTRAINT const_name;
Database | Notes | Auto Rollback |
---|---|---|
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 |