dropCompositeType
The dropCompositeType
Change Type removes a defined composite type in your PostgreSQL tables, columns, and function signatures.
Run dropCompositeType
To run this Change Type, follow these steps:
Add the Change Type to your changeset, as shown in the examples on this page.
Specify any required attributes. Use the table on this page to see which ones your database requires.
Deploy your changeset by running the
update
command:liquibase update
Available attributes
Name | Type | Description | Requirement |
| String | Name of the catalog. | Optional |
| String | Name of the schema that contains the composite type you want to drop. | Optional |
| String | Name of the type you want to drop. | Required |
| Boolean | Drop objects only if they exist in the database. | Optional |
| String | Set to | Optional |
databaseChangeLog:
- changeSet:
id: 1
author: itTest
changes:
- createCompositeType:
typeName: myDelType
typeAttributes:
- typeAttribute:
name: attr1
type: int
- typeAttribute:
name: attr2
type: text
collation: en_US
- dropCompositeType:
typeName: myDelType
ifExists: true
onDelete: CASCADE
rollback: empty