From ff16c8488aa20d52fb7f4c9345f9743315afb072 Mon Sep 17 00:00:00 2001 From: Asia Date: Wed, 24 Apr 2024 12:27:46 +0200 Subject: [PATCH] WarpySyncer: add Mode and Manta networks to sync_state --- .../000960_sync_state_warpy_syncer_mode_manta_types.sql | 5 +++++ .../000970_sync_state_warpy_syncer_mode_manta.sql | 7 +++++++ 2 files changed, 12 insertions(+) create mode 100644 src/utils/model/sql_migrations/000960_sync_state_warpy_syncer_mode_manta_types.sql create mode 100644 src/utils/model/sql_migrations/000970_sync_state_warpy_syncer_mode_manta.sql diff --git a/src/utils/model/sql_migrations/000960_sync_state_warpy_syncer_mode_manta_types.sql b/src/utils/model/sql_migrations/000960_sync_state_warpy_syncer_mode_manta_types.sql new file mode 100644 index 00000000..acb0ddd0 --- /dev/null +++ b/src/utils/model/sql_migrations/000960_sync_state_warpy_syncer_mode_manta_types.sql @@ -0,0 +1,5 @@ +-- +migrate Down + +-- +migrate Up +ALTER TYPE synced_component ADD VALUE 'WarpySyncerMode'; +ALTER TYPE synced_component ADD VALUE 'WarpySyncerManta'; \ No newline at end of file diff --git a/src/utils/model/sql_migrations/000970_sync_state_warpy_syncer_mode_manta.sql b/src/utils/model/sql_migrations/000970_sync_state_warpy_syncer_mode_manta.sql new file mode 100644 index 00000000..9b4ea9b8 --- /dev/null +++ b/src/utils/model/sql_migrations/000970_sync_state_warpy_syncer_mode_manta.sql @@ -0,0 +1,7 @@ +-- +migrate Down +DELETE FROM sync_state WHERE name = 'WarpySyncerMode'; +DELETE FROM sync_state WHERE name = 'WarpySyncerManta'; + +-- +migrate Up +INSERT INTO sync_state(name, finished_block_height, finished_block_hash) VALUES ('WarpySyncerMode', 39295852, '0x881367e3abc51a6c04a7513b0abb30a8f391aa45e35864828b4e3c29a2114b05'); +INSERT INTO sync_state(name, finished_block_height, finished_block_hash) VALUES ('WarpySyncerManta', 39295852, '0x881367e3abc51a6c04a7513b0abb30a8f391aa45e35864828b4e3c29a2114b05' ); \ No newline at end of file