Skip to content

Commit 35e29f8

Browse files
Rename delisted_pools table to pool_delistment.
In response to review feedback: #2277 (comment)
1 parent 84682f5 commit 35e29f8

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

lib/core/src/Cardano/Pool/DB/Sqlite.hs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -492,10 +492,10 @@ newDBLayer trace fp timeInterpreter = do
492492
-- TODO: remove dangling metadata no longer attached to a pool
493493

494494
delistPools =
495-
insertMany_ . fmap DelistedPool
495+
insertMany_ . fmap PoolDelistment
496496

497497
readDelistedPools =
498-
fmap (delistedPoolPoolId . entityVal) <$> selectList [] []
498+
fmap (delistedPoolId . entityVal) <$> selectList [] []
499499

500500
removePools = mapM_ $ \pool -> do
501501
liftIO $ traceWith trace $ MsgRemovingPool pool
@@ -504,7 +504,7 @@ newDBLayer trace fp timeInterpreter = do
504504
deleteWhere [ PoolRegistrationPoolId ==. pool ]
505505
deleteWhere [ PoolRetirementPoolId ==. pool ]
506506
deleteWhere [ StakeDistributionPoolId ==. pool ]
507-
deleteWhere [ DelistedPoolPoolId ==. pool ]
507+
deleteWhere [ DelistedPoolId ==. pool ]
508508

509509
removeRetiredPools epoch =
510510
bracketTracer traceOuter action
@@ -570,7 +570,7 @@ newDBLayer trace fp timeInterpreter = do
570570
deleteWhere ([] :: [Filter PoolOwner])
571571
deleteWhere ([] :: [Filter PoolRegistration])
572572
deleteWhere ([] :: [Filter PoolRetirement])
573-
deleteWhere ([] :: [Filter DelistedPool])
573+
deleteWhere ([] :: [Filter PoolDelistment])
574574
deleteWhere ([] :: [Filter StakeDistribution])
575575
deleteWhere ([] :: [Filter PoolMetadata])
576576
deleteWhere ([] :: [Filter PoolMetadataFetchAttempts])

lib/core/src/Cardano/Pool/DB/Sqlite/TH.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,9 @@ PoolRegistration sql=pool_registration
124124
Primary poolRegistrationPoolId poolRegistrationSlot poolRegistrationSlotInternalIndex
125125
deriving Show Generic
126126

127-
DelistedPool sql=delisted_pool
128-
delistedPoolPoolId W.PoolId sql=pool_id
129-
Primary delistedPoolPoolId
127+
PoolDelistment sql=pool_delistment
128+
delistedPoolId W.PoolId sql=pool_id
129+
Primary delistedPoolId
130130
deriving Show Generic
131131

132132
-- Mapping of retirement certificates to pools

0 commit comments

Comments
 (0)