-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
622d627
commit b9faa7c
Showing
1 changed file
with
2 additions
and
6 deletions.
There are no files selected for viewing
8 changes: 2 additions & 6 deletions
8
...pts/202412061200_alter_table__wholesale_internal_calculations__rename_version_columns.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
RENAME COLUMN calculation_version_dh3_temp TO calculation_version |