-
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
63a9660
commit fe54d33
Showing
1 changed file
with
11 additions
and
0 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
...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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
-- 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 | ||
GO | ||
|
||
ALTER TABLE {CATALOG_NAME}.{WHOLESALE_INTERNAL_DATABASE_NAME}.calculations | ||
RENAME COLUMN calculation_version_dh3_temp TO calculation_version_dh3 |