diff --git a/src/utils/model/sql_migrations/000990_warpy_syncer_bsc.sql b/src/utils/model/sql_migrations/000990_warpy_syncer_bsc.sql new file mode 100644 index 0000000..4c5e22e --- /dev/null +++ b/src/utils/model/sql_migrations/000990_warpy_syncer_bsc.sql @@ -0,0 +1,4 @@ +-- +migrate Down + +-- +migrate Up +ALTER TYPE synced_component ADD VALUE 'WarpySyncerBsc'; \ No newline at end of file diff --git a/src/utils/model/sql_migrations/001000_warpy_syncer_insert.sql b/src/utils/model/sql_migrations/001000_warpy_syncer_insert.sql new file mode 100644 index 0000000..b9d3e24 --- /dev/null +++ b/src/utils/model/sql_migrations/001000_warpy_syncer_insert.sql @@ -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' ); \ No newline at end of file