From 8be670707f478e8be17ab3d3b8fe3f858aec4fe7 Mon Sep 17 00:00:00 2001 From: Shayan Shiravani Date: Sat, 16 Dec 2023 10:22:34 +0330 Subject: [PATCH] Ignore core migration 0005 --- core/migrations/0005_auto_20231203_0832.py | 128 ++++++++++----------- 1 file changed, 64 insertions(+), 64 deletions(-) diff --git a/core/migrations/0005_auto_20231203_0832.py b/core/migrations/0005_auto_20231203_0832.py index 1894e4cd..e840f317 100644 --- a/core/migrations/0005_auto_20231203_0832.py +++ b/core/migrations/0005_auto_20231203_0832.py @@ -11,68 +11,68 @@ class Migration(migrations.Migration): ] operations = [ - migrations.RunSQL(""" - INSERT INTO core_walletaccount ( - id, - name, - private_key, - network_type - ) - SELECT - id, - name, - private_key, - network_type - FROM - faucet_walletaccount; - INSERT INTO core_chain ( - id, - chain_name, - symbol, - chain_id, - rpc_url, - decimals, - explorer_url, - logo_url, - native_currency_name, - poa, - rpc_url_private, - wallet_id, - modal_url, - max_gas_price, - gas_multiplier, - chain_type, - is_testnet, - is_active, - enough_fee_multiplier, - explorer_api_key, - explorer_api_url - ) - SELECT - id, - chain_name, - symbol, - chain_id, - rpc_url, - decimals, - explorer_url, - logo_url, - native_currency_name, - poa, - rpc_url_private, - wallet_id, - modal_url, - max_gas_price, - gas_multiplier, - chain_type, - is_testnet, - is_active, - enough_fee_multiplier, - explorer_api_key, - explorer_api_url - FROM - faucet_chain; - SELECT setval(pg_get_serial_sequence('"core_walletaccount"','id'), coalesce(max("id"), 1), max("id") IS NOT null) FROM "core_walletaccount"; - SELECT setval(pg_get_serial_sequence('"core_chain"','id'), coalesce(max("id"), 1), max("id") IS NOT null) FROM "core_chain"; - """, reverse_sql="") + # migrations.RunSQL(""" + # INSERT INTO core_walletaccount ( + # id, + # name, + # private_key, + # network_type + # ) + # SELECT + # id, + # name, + # private_key, + # network_type + # FROM + # faucet_walletaccount; + # INSERT INTO core_chain ( + # id, + # chain_name, + # symbol, + # chain_id, + # rpc_url, + # decimals, + # explorer_url, + # logo_url, + # native_currency_name, + # poa, + # rpc_url_private, + # wallet_id, + # modal_url, + # max_gas_price, + # gas_multiplier, + # chain_type, + # is_testnet, + # is_active, + # enough_fee_multiplier, + # explorer_api_key, + # explorer_api_url + # ) + # SELECT + # id, + # chain_name, + # symbol, + # chain_id, + # rpc_url, + # decimals, + # explorer_url, + # logo_url, + # native_currency_name, + # poa, + # rpc_url_private, + # wallet_id, + # modal_url, + # max_gas_price, + # gas_multiplier, + # chain_type, + # is_testnet, + # is_active, + # enough_fee_multiplier, + # explorer_api_key, + # explorer_api_url + # FROM + # faucet_chain; + # SELECT setval(pg_get_serial_sequence('"core_walletaccount"','id'), coalesce(max("id"), 1), max("id") IS NOT null) FROM "core_walletaccount"; + # SELECT setval(pg_get_serial_sequence('"core_chain"','id'), coalesce(max("id"), 1), max("id") IS NOT null) FROM "core_chain"; + # """, reverse_sql="") ]