Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(migrations):Adding warning logs(migrations part) (#571)
This is the first part of this PR #568 This migration adds the warning logs type to our DB
- Loading branch information
Showing
2 changed files
with
15 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
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,15 @@ | ||
BEGIN; | ||
|
||
INSERT INTO mergestat.repo_sync_log_types(type, description) VALUES ('INFO', 'Information from a sync run') | ||
ON CONFLICT(type) DO UPDATE | ||
SET description=EXCLUDED.description; | ||
|
||
INSERT INTO mergestat.repo_sync_log_types(type, description) VALUES ('WARNING', 'Unexpected behavior from a sync run') | ||
ON CONFLICT(type) DO UPDATE | ||
SET description=EXCLUDED.description; | ||
|
||
INSERT INTO mergestat.repo_sync_log_types(type, description) VALUES ('ERROR', 'Error from a sync run') | ||
ON CONFLICT(type) DO UPDATE | ||
SET description=EXCLUDED.description; | ||
|
||
COMMIT; |