Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

Commit

Permalink
Fix 0.5.1 to 0.6.x SQL migration script
Browse files Browse the repository at this point in the history
Signed-off-by: paulfantom <[email protected]>
  • Loading branch information
paulfantom authored and cevian committed Oct 12, 2021
1 parent ce939ac commit 072ec1f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pkg/migrations/migration_files_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ ALTER TABLE SCHEMA_CATALOG.metric
ADD CONSTRAINT metric_metric_name_table_schema_table_name_key UNIQUE (metric_name, table_schema) INCLUDE (table_name),
ADD CONSTRAINT metric_table_schema_table_name_key UNIQUE(table_schema, table_name);

UPDATE SCHEMA_CATALOG.metric SET series_table = table_name;
UPDATE SCHEMA_CATALOG.metric SET series_table = table_name WHERE 1 = 1;
ALTER TABLE SCHEMA_CATALOG.metric ALTER COLUMN series_table SET NOT NULL;

DROP FUNCTION IF EXISTS SCHEMA_CATALOG.get_metric_table_name_if_exists(TEXT);
Expand Down

0 comments on commit 072ec1f

Please sign in to comment.