From 067beffd47db4338231ace0e5a58252ac64bdb48 Mon Sep 17 00:00:00 2001 From: slowbackspace Date: Wed, 13 Mar 2024 12:03:18 +0100 Subject: [PATCH] fix(sql): pool data table name pool_offline_data -> off_chain_pool_data) --- src/sql/pools/pools_pool_id_metadata.sql | 2 +- src/sql/txs/txs_hash_pool_updates.sql | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sql/pools/pools_pool_id_metadata.sql b/src/sql/pools/pools_pool_id_metadata.sql index df12ffb8..dc55e1c9 100644 --- a/src/sql/pools/pools_pool_id_metadata.sql +++ b/src/sql/pools/pools_pool_id_metadata.sql @@ -19,7 +19,7 @@ SELECT ( pod.ticker_name AS "ticker", pod.json AS "metadata_text" FROM pool_metadata_ref pmr - LEFT JOIN pool_offline_data pod ON (pmr.hash = pod.hash) + LEFT JOIN off_chain_pool_data pod ON (pmr.hash = pod.hash) WHERE pmr.id = ( SELECT meta_id FROM pool_update pu diff --git a/src/sql/txs/txs_hash_pool_updates.sql b/src/sql/txs/txs_hash_pool_updates.sql index d7e544b6..71838234 100644 --- a/src/sql/txs/txs_hash_pool_updates.sql +++ b/src/sql/txs/txs_hash_pool_updates.sql @@ -27,6 +27,6 @@ FROM tx JOIN pool_hash ph ON (ph.id = pu.hash_id) LEFT JOIN stake_address sa ON (sa.id = pu.reward_addr_id) LEFT JOIN pool_metadata_ref pmr ON (pmr.id = pu.meta_id) - LEFT JOIN pool_offline_data pod ON (pmr.hash = pod.hash) + LEFT JOIN off_chain_pool_data pod ON (pmr.hash = pod.hash) WHERE encode(tx.hash, 'hex') = $1 ORDER BY pu.cert_index ASC \ No newline at end of file