From 5089d5c490639ac89fff75f8bc0c05c29fac0b77 Mon Sep 17 00:00:00 2001 From: Rachit Sonthalia Date: Fri, 29 Nov 2024 12:25:23 +0530 Subject: [PATCH] fix migration file --- db/migrations/0006.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/db/migrations/0006.sql b/db/migrations/0006.sql index 5d681d6..c6a80c2 100644 --- a/db/migrations/0006.sql +++ b/db/migrations/0006.sql @@ -4,7 +4,7 @@ ALTER TABLE data_node.offchain_data ADD COLUMN IF NOT EXISTS batch_num BIGINT NOT NULL DEFAULT 0; -- Rename the 'missing_batches' table to 'unresolved_batches' -ALTER TABLE missing_batches RENAME TO unresolved_batches; +ALTER TABLE data_node.missing_batches RENAME TO unresolved_batches; -- Create an index for the 'batch_num' column for better performance CREATE INDEX IF NOT EXISTS idx_batch_num ON data_node.offchain_data(batch_num); @@ -17,7 +17,7 @@ UPDATE data_node.sync_tasks SET block = 0 WHERE task = 'L1'; ALTER TABLE data_node.offchain_data DROP COLUMN batch_num; -- Rename the 'unresolved_batches' table back to 'missing_batches' -ALTER TABLE unresolved_batches RENAME TO missing_batches; +ALTER TABLE data_node.unresolved_batches RENAME TO missing_batches; -- Drop the index created on 'batch_num' DROP INDEX IF EXISTS idx_batch_num; \ No newline at end of file