From 3005a1ad50e97ca0ee4b0ed2143bd96f909db700 Mon Sep 17 00:00:00 2001 From: Elizabeth Engelman Date: Thu, 1 Aug 2019 11:54:56 -0500 Subject: [PATCH] Move add address migration table up in the migration order --- ...00028_add_address_table.sql => 00013_add_address_table.sql} | 3 +-- ...eate_receipts_table.sql => 00014_create_receipts_table.sql} | 0 ...ipts.sql => 00015_add_transaction_id_index_to_receipts.sql} | 0 ...ceipts_fk_to_logs.sql => 00016_add_receipts_fk_to_logs.sql} | 0 ...016_create_log_filters.sql => 00017_create_log_filters.sql} | 0 ...ched_event_logs.sql => 00018_create_watched_event_logs.sql} | 0 ...nt.sql => 00019_update_log_filters_to_block_constraint.sql} | 0 ...00019_rename_node_table.sql => 00020_rename_node_table.sql} | 0 ...ith_blocks.sql => 00021_associate_receipts_with_blocks.sql} | 0 ...blocks.sql => 00022_add_eth_node_fingerprint_to_blocks.sql} | 0 ...create_headers_table.sql => 00023_create_headers_table.sql} | 0 ...eaders_table.sql => 00024_create_checked_headers_table.sql} | 0 ...eate_queued_storage.sql => 00025_create_queued_storage.sql} | 0 ...ble.sql => 00026_create_header_sync_transactions_table.sql} | 0 ...s_table.sql => 00027_create_header_sync_receipts_table.sql} | 0 ...7_create_uncles_table.sql => 00028_create_uncles_table.sql} | 0 16 files changed, 1 insertion(+), 2 deletions(-) rename db/migrations/{00028_add_address_table.sql => 00013_add_address_table.sql} (60%) rename db/migrations/{00013_create_receipts_table.sql => 00014_create_receipts_table.sql} (100%) rename db/migrations/{00014_add_transaction_id_index_to_receipts.sql => 00015_add_transaction_id_index_to_receipts.sql} (100%) rename db/migrations/{00015_add_receipts_fk_to_logs.sql => 00016_add_receipts_fk_to_logs.sql} (100%) rename db/migrations/{00016_create_log_filters.sql => 00017_create_log_filters.sql} (100%) rename db/migrations/{00017_create_watched_event_logs.sql => 00018_create_watched_event_logs.sql} (100%) rename db/migrations/{00018_update_log_filters_to_block_constraint.sql => 00019_update_log_filters_to_block_constraint.sql} (100%) rename db/migrations/{00019_rename_node_table.sql => 00020_rename_node_table.sql} (100%) rename db/migrations/{00020_associate_receipts_with_blocks.sql => 00021_associate_receipts_with_blocks.sql} (100%) rename db/migrations/{00021_add_eth_node_fingerprint_to_blocks.sql => 00022_add_eth_node_fingerprint_to_blocks.sql} (100%) rename db/migrations/{00022_create_headers_table.sql => 00023_create_headers_table.sql} (100%) rename db/migrations/{00023_create_checked_headers_table.sql => 00024_create_checked_headers_table.sql} (100%) rename db/migrations/{00024_create_queued_storage.sql => 00025_create_queued_storage.sql} (100%) rename db/migrations/{00025_create_header_sync_transactions_table.sql => 00026_create_header_sync_transactions_table.sql} (100%) rename db/migrations/{00026_create_header_sync_receipts_table.sql => 00027_create_header_sync_receipts_table.sql} (100%) rename db/migrations/{00027_create_uncles_table.sql => 00028_create_uncles_table.sql} (100%) diff --git a/db/migrations/00028_add_address_table.sql b/db/migrations/00013_add_address_table.sql similarity index 60% rename from db/migrations/00028_add_address_table.sql rename to db/migrations/00013_add_address_table.sql index 2a7f99a8..22ee7b3e 100644 --- a/db/migrations/00028_add_address_table.sql +++ b/db/migrations/00013_add_address_table.sql @@ -7,5 +7,4 @@ CREATE TABLE public.addresses ); -- +goose Down --- SQL in this section is executed when the migration is rolled back. -DROP TABLE public.addresses; +DROP TABLE public.addresses; \ No newline at end of file diff --git a/db/migrations/00013_create_receipts_table.sql b/db/migrations/00014_create_receipts_table.sql similarity index 100% rename from db/migrations/00013_create_receipts_table.sql rename to db/migrations/00014_create_receipts_table.sql diff --git a/db/migrations/00014_add_transaction_id_index_to_receipts.sql b/db/migrations/00015_add_transaction_id_index_to_receipts.sql similarity index 100% rename from db/migrations/00014_add_transaction_id_index_to_receipts.sql rename to db/migrations/00015_add_transaction_id_index_to_receipts.sql diff --git a/db/migrations/00015_add_receipts_fk_to_logs.sql b/db/migrations/00016_add_receipts_fk_to_logs.sql similarity index 100% rename from db/migrations/00015_add_receipts_fk_to_logs.sql rename to db/migrations/00016_add_receipts_fk_to_logs.sql diff --git a/db/migrations/00016_create_log_filters.sql b/db/migrations/00017_create_log_filters.sql similarity index 100% rename from db/migrations/00016_create_log_filters.sql rename to db/migrations/00017_create_log_filters.sql diff --git a/db/migrations/00017_create_watched_event_logs.sql b/db/migrations/00018_create_watched_event_logs.sql similarity index 100% rename from db/migrations/00017_create_watched_event_logs.sql rename to db/migrations/00018_create_watched_event_logs.sql diff --git a/db/migrations/00018_update_log_filters_to_block_constraint.sql b/db/migrations/00019_update_log_filters_to_block_constraint.sql similarity index 100% rename from db/migrations/00018_update_log_filters_to_block_constraint.sql rename to db/migrations/00019_update_log_filters_to_block_constraint.sql diff --git a/db/migrations/00019_rename_node_table.sql b/db/migrations/00020_rename_node_table.sql similarity index 100% rename from db/migrations/00019_rename_node_table.sql rename to db/migrations/00020_rename_node_table.sql diff --git a/db/migrations/00020_associate_receipts_with_blocks.sql b/db/migrations/00021_associate_receipts_with_blocks.sql similarity index 100% rename from db/migrations/00020_associate_receipts_with_blocks.sql rename to db/migrations/00021_associate_receipts_with_blocks.sql diff --git a/db/migrations/00021_add_eth_node_fingerprint_to_blocks.sql b/db/migrations/00022_add_eth_node_fingerprint_to_blocks.sql similarity index 100% rename from db/migrations/00021_add_eth_node_fingerprint_to_blocks.sql rename to db/migrations/00022_add_eth_node_fingerprint_to_blocks.sql diff --git a/db/migrations/00022_create_headers_table.sql b/db/migrations/00023_create_headers_table.sql similarity index 100% rename from db/migrations/00022_create_headers_table.sql rename to db/migrations/00023_create_headers_table.sql diff --git a/db/migrations/00023_create_checked_headers_table.sql b/db/migrations/00024_create_checked_headers_table.sql similarity index 100% rename from db/migrations/00023_create_checked_headers_table.sql rename to db/migrations/00024_create_checked_headers_table.sql diff --git a/db/migrations/00024_create_queued_storage.sql b/db/migrations/00025_create_queued_storage.sql similarity index 100% rename from db/migrations/00024_create_queued_storage.sql rename to db/migrations/00025_create_queued_storage.sql diff --git a/db/migrations/00025_create_header_sync_transactions_table.sql b/db/migrations/00026_create_header_sync_transactions_table.sql similarity index 100% rename from db/migrations/00025_create_header_sync_transactions_table.sql rename to db/migrations/00026_create_header_sync_transactions_table.sql diff --git a/db/migrations/00026_create_header_sync_receipts_table.sql b/db/migrations/00027_create_header_sync_receipts_table.sql similarity index 100% rename from db/migrations/00026_create_header_sync_receipts_table.sql rename to db/migrations/00027_create_header_sync_receipts_table.sql diff --git a/db/migrations/00027_create_uncles_table.sql b/db/migrations/00028_create_uncles_table.sql similarity index 100% rename from db/migrations/00027_create_uncles_table.sql rename to db/migrations/00028_create_uncles_table.sql