-
Notifications
You must be signed in to change notification settings - Fork 892
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
69ce438
commit c923f78
Showing
5 changed files
with
112 additions
and
31 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
12 changes: 10 additions & 2 deletions
12
memory-store/migrations/000013_executions_continuous_view.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
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,17 +1,49 @@ | ||
BEGIN; | ||
|
||
SELECT | ||
remove_compression_policy ('entries'); | ||
DO $$ | ||
BEGIN | ||
BEGIN | ||
SELECT | ||
remove_compression_policy ('entries'); | ||
EXCEPTION | ||
WHEN others THEN | ||
RAISE NOTICE 'An error occurred during remove_compression_policy(entries): %, %', SQLSTATE, SQLERRM; | ||
END; | ||
END $$; | ||
|
||
SELECT | ||
remove_compression_policy ('transitions'); | ||
DO $$ | ||
BEGIN | ||
BEGIN | ||
SELECT | ||
remove_compression_policy ('transitions'); | ||
EXCEPTION | ||
WHEN others THEN | ||
RAISE NOTICE 'An error occurred during remove_compression_policy(transitions): %, %', SQLSTATE, SQLERRM; | ||
END; | ||
END $$; | ||
|
||
ALTER TABLE entries | ||
SET | ||
(timescaledb.compress = FALSE); | ||
DO $$ | ||
BEGIN | ||
BEGIN | ||
ALTER TABLE entries | ||
SET | ||
(timescaledb.compress = FALSE); | ||
EXCEPTION | ||
WHEN others THEN | ||
RAISE NOTICE 'An error occurred during unsetting entries.compress: %, %', SQLSTATE, SQLERRM; | ||
END; | ||
END $$; | ||
|
||
ALTER TABLE transitions | ||
SET | ||
(timescaledb.compress = FALSE); | ||
DO $$ | ||
BEGIN | ||
BEGIN | ||
ALTER TABLE transitions | ||
SET | ||
(timescaledb.compress = FALSE); | ||
EXCEPTION | ||
WHEN others THEN | ||
RAISE NOTICE 'An error occurred during unsetting transitions.compress: %, %', SQLSTATE, SQLERRM; | ||
END; | ||
END $$; | ||
|
||
COMMIT; |
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