File tree Expand file tree Collapse file tree 3 files changed +14
-2
lines changed
cardano-db/src/Cardano/Db
cardano-db-sync/src/Cardano/DbSync Expand file tree Collapse file tree 3 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,8 @@ rollbackFromBlockNo syncEnv blkNo = do
54
54
DB. deleteEpochRows epochNo
55
55
DB. setNullEnacted epochNo
56
56
DB. setNullRatified epochNo
57
+ DB. setNullDropped epochNo
58
+ DB. setNullExpired epochNo
57
59
when (deletedBlockCount > 0 ) $ do
58
60
-- We use custom constraints to improve input speeds when syncing.
59
61
-- If they don't already exists we add them here as once a rollback has happened
Original file line number Diff line number Diff line change @@ -71,6 +71,8 @@ module Cardano.Db.Insert (
71
71
updateGovActionExpired ,
72
72
setNullEnacted ,
73
73
setNullRatified ,
74
+ setNullExpired ,
75
+ setNullDropped ,
74
76
replaceAdaPots ,
75
77
insertAnchor ,
76
78
insertConstitution ,
@@ -397,6 +399,14 @@ setNullRatified :: MonadIO m => Word64 -> ReaderT SqlBackend m ()
397
399
setNullRatified eNo =
398
400
updateWhere [GovActionProposalRatifiedEpoch !=. Nothing , GovActionProposalRatifiedEpoch >. Just eNo] [GovActionProposalRatifiedEpoch =. Nothing ]
399
401
402
+ setNullExpired :: MonadIO m => Word64 -> ReaderT SqlBackend m ()
403
+ setNullExpired eNo =
404
+ updateWhere [GovActionProposalExpiredEpoch !=. Nothing , GovActionProposalExpiredEpoch >. Just eNo] [GovActionProposalExpiredEpoch =. Nothing ]
405
+
406
+ setNullDropped :: MonadIO m => Word64 -> ReaderT SqlBackend m ()
407
+ setNullDropped eNo =
408
+ updateWhere [GovActionProposalDroppedEpoch !=. Nothing , GovActionProposalDroppedEpoch >. Just eNo] [GovActionProposalDroppedEpoch =. Nothing ]
409
+
400
410
replaceAdaPots :: (MonadBaseControl IO m , MonadIO m ) => BlockId -> AdaPots -> ReaderT SqlBackend m Bool
401
411
replaceAdaPots blockId adapots = do
402
412
mAdaPotsId <- queryAdaPotsId blockId
Original file line number Diff line number Diff line change @@ -904,6 +904,7 @@ schemaDocs =
904
904
PoolUpdateMetaId # " The PoolMetadataRef table index this pool update refers to."
905
905
PoolUpdateMargin # " The margin (as a percentage) this pool charges."
906
906
PoolUpdateFixedCost # " The fixed per epoch fee (in ADA) this pool charges."
907
+ PoolUpdateDeposit # " The deposit payed for this pool update. Null for reregistrations."
907
908
PoolUpdateRegisteredTxId # " The Tx table index of the transaction in which provided this pool update."
908
909
909
910
PoolOwner --^ do
@@ -1277,8 +1278,7 @@ schemaDocs =
1277
1278
1278
1279
GovActionProposal --^ do
1279
1280
" A table for proposed GovActionProposal, aka ProposalProcedure, GovAction or GovProposal.\
1280
- \ At most one of the ratified/enacted/dropped/expired\
1281
- \ epoch field can be non-null, indicating the current state of the proposal. This table may be referenced\
1281
+ \ This table may be referenced\
1282
1282
\ by TreasuryWithdrawal or NewCommittee. New in 13.2-Conway."
1283
1283
GovActionProposalTxId # " The Tx table index of the tx that includes this certificate."
1284
1284
GovActionProposalIndex # " The index of this proposal procedure within its transaction."
You can’t perform that action at this time.
0 commit comments