Skip to content

Commit

Permalink
fix(hasura): fix migrations (#342)
Browse files Browse the repository at this point in the history
  • Loading branch information
lionelB committed Feb 24, 2021
1 parent 50f18b7 commit 63a0463
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions targets/hasura/migrations/1613478848457_add_audit/down.sql
Expand Up @@ -12,6 +12,8 @@ DROP TRIGGER IF EXISTS audit_trigger_row on alerts;
DROP TRIGGER IF EXISTS audit_trigger_stm on alerts;
DROP TRIGGER IF EXISTS audit_trigger_row on document_relations;
DROP TRIGGER IF EXISTS audit_trigger_stm on document_relations;
DROP TRIGGER IF EXISTS audit_trigger_row on documents;
DROP TRIGGER IF EXISTS audit_trigger_stm on documents;
DROP TRIGGER IF EXISTS audit_trigger_row on glossary;
DROP TRIGGER IF EXISTS audit_trigger_stm on glossary;
DROP TRIGGER IF EXISTS audit_trigger_row on kali_blocks;
Expand All @@ -23,7 +25,4 @@ DROP TRIGGER IF EXISTS audit_trigger_stm on roles;
DROP TRIGGER IF EXISTS audit_trigger_row on sources;
DROP TRIGGER IF EXISTS audit_trigger_stm on sources;

DROP TRIGGER IF EXISTS documents_audit_update_selective on documents;
DROP TRIGGER IF EXISTS documents_audit_insert_delete on documents;


DROP TRIGGER IF EXISTS logged_actions_delete on audit.logged_actions;
2 changes: 1 addition & 1 deletion targets/hasura/migrations/1613499638772_alert_clean/up.sql
Expand Up @@ -6,7 +6,7 @@ END;
$body$
LANGUAGE 'plpgsql';

COMMENT ON FUNCTION delete_old_alerts(duration) IS $body$
COMMENT ON FUNCTION delete_old_alerts() IS $body$
Remove alerts that are older that a given duration

Arguments:
Expand Down

0 comments on commit 63a0463

Please sign in to comment.