Is there a Liquibase version that allows Google Spanner to rename a table?
These are allowed from the Google Docs
ALTER TABLE table_name RENAME TO new_table_name;
RENAME TABLE table_name TO new_table_name;
Is there a Liquibase version that allows Google Spanner to rename a table?
These are allowed from the Google Docs
ALTER TABLE table_name RENAME TO new_table_name;
RENAME TABLE table_name TO new_table_name;
You add that custom sql to any type of changelog file. Here is a formatted sql example:
--liquibase formatted sql
--changeset bob:1
ALTER TABLE table_name RENAME TO new_table_name;
--rollback ALTER TABLE new_table_name RENAME TO table_name;
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Rename databasechangelog table | 1 | 1081 | January 3, 2014 | |
| Liquibase Spanner automatic changelog generation | 7 | 693 | September 20, 2022 | |
| How do I modify createTable in an extension? | 2 | 886 | December 28, 2020 | |
| Deploying Spanner schema changes with liquibase results in INVALID_ARGUMENT: io.grpc.StatusRuntimeException Unsupported concurrency mode | 4 | 126 | September 16, 2024 | |
| Spanner migrations are failing to execute | 1 | 85 | July 25, 2024 |