Skip to content

Commit

Permalink
Schema changes for consumedByTxInId and foreign key
Browse files Browse the repository at this point in the history
  • Loading branch information
kderme committed May 30, 2023
1 parent e6535b5 commit 0650bbb
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -147,6 +147,7 @@ share
dataHash ByteString Maybe sqltype=hash32type
inlineDatumId DatumId Maybe noreference
referenceScriptId ScriptId Maybe noreference
consumedByTxInId TxInId Maybe noreference
UniqueTxout txId index -- The (tx_id, index) pair must be unique.

CollateralTxOut
Expand Down Expand Up @@ -363,7 +364,7 @@ share
MaTxOut
ident MultiAssetId noreference
quantity DbWord64 sqltype=word64type
txOutId TxOutId noreference
txOutId TxOutId

-- Unit step is in picosends, and `maxBound :: Int64` picoseconds is over 100 days, so using
-- Word64/word63type is safe here. Similarly, `maxBound :: Int64` if unit step would be an
Expand Down

0 comments on commit 0650bbb

Please sign in to comment.