-
Notifications
You must be signed in to change notification settings - Fork 44
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
d1dc659
commit ed70641
Showing
5 changed files
with
134 additions
and
45 deletions.
There are no files selected for viewing
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
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
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
23 changes: 23 additions & 0 deletions
23
migrationmanager/migrators/metrics/migrations/000002_metric_meta.down.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,23 @@ | ||
ALTER TABLE signoz_metrics.time_series_v3 ON CLUSTER {{.SIGNOZ_CLUSTER}} | ||
DROP COLUMN IF EXISTS description, | ||
DROP COLUMN IF EXISTS unit, | ||
DROP COLUMN IF EXISTS type, | ||
DROP COLUMN IF EXISTS is_monotonic; | ||
|
||
ALTER TABLE signoz_metrics.distributed_time_series_v3 ON CLUSTER {{.SIGNOZ_CLUSTER}} | ||
DROP COLUMN IF EXISTS description, | ||
DROP COLUMN IF EXISTS unit, | ||
DROP COLUMN IF EXISTS type, | ||
DROP COLUMN IF EXISTS is_monotonic; | ||
|
||
ALTER TABLE signoz_metrics.time_series_v2 ON CLUSTER {{.SIGNOZ_CLUSTER}} | ||
DROP COLUMN IF EXISTS description, | ||
DROP COLUMN IF EXISTS unit, | ||
DROP COLUMN IF EXISTS type, | ||
DROP COLUMN IF EXISTS is_monotonic; | ||
|
||
ALTER TABLE signoz_metrics.distributed_time_series_v2 ON CLUSTER {{.SIGNOZ_CLUSTER}} | ||
DROP COLUMN IF EXISTS description, | ||
DROP COLUMN IF EXISTS unit, | ||
DROP COLUMN IF EXISTS type, | ||
DROP COLUMN IF EXISTS is_monotonic; |
23 changes: 23 additions & 0 deletions
23
migrationmanager/migrators/metrics/migrations/000002_metric_meta.up.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,23 @@ | ||
ALTER TABLE signoz_metrics.time_series_v3 ON CLUSTER {{.SIGNOZ_CLUSTER}} | ||
ADD COLUMN IF NOT EXISTS description LowCardinality(String) DEFAULT '' CODEC(ZSTD(1)), | ||
ADD COLUMN IF NOT EXISTS unit LowCardinality(String) DEFAULT '' CODEC(ZSTD(1)), | ||
ADD COLUMN IF NOT EXISTS type LowCardinality(String) DEFAULT '' CODEC(ZSTD(1)), | ||
ADD COLUMN IF NOT EXISTS is_monotonic Bool DEFAULT false CODEC(ZSTD(1)); | ||
|
||
ALTER TABLE signoz_metrics.distributed_time_series_v3 ON CLUSTER {{.SIGNOZ_CLUSTER}} | ||
ADD COLUMN IF NOT EXISTS description LowCardinality(String) DEFAULT '' CODEC(ZSTD(1)), | ||
ADD COLUMN IF NOT EXISTS unit LowCardinality(String) DEFAULT '' CODEC(ZSTD(1)), | ||
ADD COLUMN IF NOT EXISTS type LowCardinality(String) DEFAULT '' CODEC(ZSTD(1)), | ||
ADD COLUMN IF NOT EXISTS is_monotonic Bool DEFAULT false CODEC(ZSTD(1)); | ||
|
||
ALTER TABLE signoz_metrics.time_series_v2 ON CLUSTER {{.SIGNOZ_CLUSTER}} | ||
ADD COLUMN IF NOT EXISTS description LowCardinality(String) DEFAULT '' CODEC(ZSTD(1)), | ||
ADD COLUMN IF NOT EXISTS unit LowCardinality(String) DEFAULT '' CODEC(ZSTD(1)), | ||
ADD COLUMN IF NOT EXISTS type LowCardinality(String) DEFAULT '' CODEC(ZSTD(1)), | ||
ADD COLUMN IF NOT EXISTS is_monotonic Bool DEFAULT false CODEC(ZSTD(1)); | ||
|
||
ALTER TABLE signoz_metrics.distributed_time_series_v2 ON CLUSTER {{.SIGNOZ_CLUSTER}} | ||
ADD COLUMN IF NOT EXISTS description LowCardinality(String) DEFAULT '' CODEC(ZSTD(1)), | ||
ADD COLUMN IF NOT EXISTS unit LowCardinality(String) DEFAULT '' CODEC(ZSTD(1)), | ||
ADD COLUMN IF NOT EXISTS type LowCardinality(String) DEFAULT '' CODEC(ZSTD(1)), | ||
ADD COLUMN IF NOT EXISTS is_monotonic Bool DEFAULT false CODEC(ZSTD(1)); |