Renames an existing view
Name | Description |
---|---|
catalogName | Name of the catalog@ v3.0E.g. 'cat' |
newViewName | Name to rename the view toE.g. 'v_person' |
oldViewName | Name of the view to renameE.g. 'v_person' |
schemaName | Name of the schemaSupported by: ingres, mariadb, mssql, mysql, postgresql, sqlite, sybaseE.g. 'public' |
<changeSet author="liquibase-docs" id="renameView-example">
<renameView catalogName="cat"
newViewName="v_person"
oldViewName="v_person"
schemaName="public"/>
</changeSet>
changeSet:
id: renameView-example
author: liquibase-docs
changes:
- renameView:
catalogName: cat
newViewName: v_person
oldViewName: v_person
schemaName: public
{
"changeSet": {
"id": "renameView-example",
"author": "liquibase-docs",
"changes": [
{
"renameView": {
"catalogName": "cat",
"newViewName": "v_person",
"oldViewName": "v_person",
"schemaName": "public"
}
}]
}
}
RENAME TABLE cat.v_person TO cat.v_person;
Database | Notes | Auto Rollback |
---|---|---|
DB2/LUW | Not Supported | Yes |
DB2/z | Not Supported | Yes |
Derby | Not Supported | Yes |
Firebird | Not Supported | Yes |
H2 | Not Supported | Yes |
HyperSQL | Not Supported | Yes |
INGRES | Supported | Yes |
Informix | Not Supported | Yes |
MariaDB | Supported | Yes |
MySQL | Supported | Yes |
Oracle | Supported | Yes |
PostgreSQL | Supported | Yes |
SQL Server | Supported | Yes |
SQLite | Supported | Yes |
Sybase | Supported | Yes |
Sybase Anywhere | Not Supported | Yes |