renameWarehouse
Renames an existing Snowflake warehouse. This operation changes the warehouse identifier while preserving all configuration settings.
Note: Automatic rollback renames the warehouse back to original name.
Available attributes
Attribute | Type | Description | Required |
|---|---|---|---|
| String | Current name of the warehouse to rename | Yes |
| String | New name for the warehouse | Yes |
| Boolean | If true, only renames if the warehouse exists | No |
<?xml version="1.0" encoding="UTF-8"?>
<databaseChangeLog
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:pro-snowflake="http://www.liquibase.org/xml/ns/pro-snowflake"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-latest.xsd
http://www.liquibase.org/xml/ns/pro-snowflake
http://www.liquibase.org/xml/ns/pro-snowflake/liquibase-pro-snowflake-latest.xsd">
<!-- Basic rename -->
<changeSet id="rename-warehouse" author="examples">
<pro-snowflake:renameWarehouse
oldWarehouseName="DEV_WH"
newWarehouseName="DEVELOPMENT_WH"/>
</changeSet>
<!-- Rename with IF EXISTS -->
<changeSet id="rename-warehouse-if-exists" author="examples">
<pro-snowflake:renameWarehouse
oldWarehouseName="OLD_WH"
newWarehouseName="NEW_WH"
ifExists="true"/>
</changeSet>
</databaseChangeLog>