Skip to content

Commit

Permalink
WarpySyncer: add Bsc chain to sync_state
Browse files Browse the repository at this point in the history
  • Loading branch information
asiaziola committed Aug 14, 2024
1 parent e2a6c24 commit dea865f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/utils/model/sql_migrations/000990_warpy_syncer_bsc.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
-- +migrate Down

-- +migrate Up
ALTER TYPE synced_component ADD VALUE 'WarpySyncerBsc';
5 changes: 5 additions & 0 deletions src/utils/model/sql_migrations/001000_warpy_syncer_insert.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
-- +migrate Down
DELETE FROM sync_state WHERE name = 'WarpySyncerBsc';

-- +migrate Up
INSERT INTO sync_state(name, finished_block_height, finished_block_hash) VALUES ('WarpySyncerBsc', 41353910, '0x881367e3abc51a6c04a7513b0abb30a8f391aa45e35864828b4e3c29a2114b05' );

0 comments on commit dea865f

Please sign in to comment.