Skip to content

Commit

Permalink
Syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
slb-halfspace committed Dec 3, 2024
1 parent 89117c8 commit 1dcf4da
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,8 @@ RENAME COLUMN calculation_version TO calculation_version_dh3
GO

ALTER TABLE {CATALOG_NAME}.{WHOLESALE_INTERNAL_DATABASE_NAME}.calculations
ADD COLUMN (calculation_version_dh2 bigint, calculation_version bigint GENERATED ALWAYS AS (CASE WHEN calculation_version_dh2 IS NOT NULL THEN 0 ELSE calculation_version_dh3 END))
ADD COLUMNS (calculation_version_dh2 bigint)
GO

ALTER TABLE {CATALOG_NAME}.{WHOLESALE_INTERNAL_DATABASE_NAME}.calculations
ADD COLUMNS (calculation_version bigint GENERATED ALWAYS AS (CASE WHEN calculation_version_dh2 IS NOT NULL THEN 0 ELSE calculation_version_dh3 END))

0 comments on commit 1dcf4da

Please sign in to comment.