Skip to content

Commit

Permalink
fix: add sync trigger to payments_metadata table (#852)
Browse files Browse the repository at this point in the history
  • Loading branch information
hydra-yse authored Mar 13, 2024
1 parent 908bed4 commit d16164e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions libs/sdk-core/src/persist/migrations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -598,6 +598,13 @@ pub(crate) fn current_sync_migrations() -> Vec<&'static str> {
FROM reverse_swaps_old;
DROP TABLE reverse_swaps_old;
",
"
CREATE TRIGGER IF NOT EXISTS sync_payments_metadata
AFTER INSERT ON payments_metadata
BEGIN
INSERT INTO sync_requests(changed_table) VALUES('payments_metadata');
END;
",
]
}

0 comments on commit d16164e

Please sign in to comment.