Skip to content

Commit

Permalink
feat(migrations):Adding warning logs(migrations part) (#571)
Browse files Browse the repository at this point in the history
This is the first part of this PR
#568
This migration adds the warning logs type to our DB
  • Loading branch information
ramiroJCB committed Nov 24, 2022
2 parents bd4e7d0 + 4137735 commit 90eb46c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
Empty file.
15 changes: 15 additions & 0 deletions migrations/900000000000009_warning_logs.up.sql
@@ -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;

0 comments on commit 90eb46c

Please sign in to comment.