Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(hasura): fix migrations #342

Merged
merged 1 commit into from
Feb 24, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions targets/hasura/migrations/1613478848457_add_audit/down.sql
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that are older than 3 months du coup ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

la fonction accede un nombre de mois en parametre, les 3 mois c'est dans l'utilisation du trigger plus bas


Arguments:
Expand Down