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