Alter Standard Table - Data Retention
Last updated: January 27, 2026
Modifies data retention settings for Time Travel. Time Travel enables querying and restoring historical data within the retention period.
Known limitations:
This change type does not support automatic rollback.
Snowflake snapshots created with Liquibase Secure 5.1 are incompatible with earlier versions due to enhanced object type detection for TABLES and VIEWS. Regenerate all snapshots with 5.1 after upgrading to avoid false differences in diff and diff-changelog operations.
Available attributes
Attribute | Type | Description | Required |
|---|---|---|---|
| String | Name of the catalog (database) containing the table | No |
| String | Name of the schema containing the table | No |
| String | Name of the table to alter | Yes |
| Boolean | Only execute if the table exists | No |
alterDataRetention nested attributes
Attribute | Type | Description | Required |
|---|---|---|---|
| Integer | New Time Travel retention period (0-90 days) | No* |
| Boolean | If true, unsets the data retention time | No* |
| Integer | New maximum extension period | No* |
| Boolean | If true, unsets the max extension time | No* |
*Specify at least one attribute. newDataRetentionTimeInDays and unsetDataRetentionTimeInDays are mutually exclusive. newMaxDataExtensionTimeInDays and unsetMaxDataExtensionTimeInDays are mutually exclusive.