From b9faa7c557e16dc7590a7d4727d6fc433c1963e8 Mon Sep 17 00:00:00 2001 From: "Svend (SLB)" Date: Mon, 9 Dec 2024 10:02:57 +0100 Subject: [PATCH] Fixed rename script --- ...sale_internal_calculations__rename_version_columns.sql | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/source/databricks/calculation_engine/package/datamigration/migration_scripts/202412061200_alter_table__wholesale_internal_calculations__rename_version_columns.sql b/source/databricks/calculation_engine/package/datamigration/migration_scripts/202412061200_alter_table__wholesale_internal_calculations__rename_version_columns.sql index 01a2f69210..deefc4c900 100644 --- a/source/databricks/calculation_engine/package/datamigration/migration_scripts/202412061200_alter_table__wholesale_internal_calculations__rename_version_columns.sql +++ b/source/databricks/calculation_engine/package/datamigration/migration_scripts/202412061200_alter_table__wholesale_internal_calculations__rename_version_columns.sql @@ -1,11 +1,7 @@ -- Swaps the column namings to make the calculation_version the "combined" column rather than just for DH3. ALTER TABLE {CATALOG_NAME}.{WHOLESALE_INTERNAL_DATABASE_NAME}.calculations -RENAME COLUMN calculation_version TO calculation_version_dh3_temp -GO - -ALTER TABLE {CATALOG_NAME}.{WHOLESALE_INTERNAL_DATABASE_NAME}.calculations -RENAME COLUMN calculation_version_dh3 TO calculation_version +RENAME COLUMN calculation_version TO calculation_version_dh3 GO ALTER TABLE {CATALOG_NAME}.{WHOLESALE_INTERNAL_DATABASE_NAME}.calculations -RENAME COLUMN calculation_version_dh3_temp TO calculation_version_dh3 \ No newline at end of file +RENAME COLUMN calculation_version_dh3_temp TO calculation_version \ No newline at end of file