Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CORE-17430 Modify the utxo_transaction_sources table by removing unused columns and renaming #1288

Merged
merged 14 commits into from
Oct 13, 2023
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,22 @@
<!-- Drop the created column from the utxo_transaction_component table -->
<dropColumn columnName="created" tableName="utxo_transaction_component"/>

<!-- Drop the utxo_transaction_sources table -->
<dropTable tableName="utxo_transaction_sources"/>
<!-- Drop the created and is_ref_input columns from the utxo_transaction_sources table -->
<dropColumn tableName="utxo_transaction_sources">
<column name="created"/>
<column name="is_ref_input"/>
</dropColumn>

<!-- Rename the columns in utxo_transaction_sources to avoid confusion -->
<renameColumn columnDataType="VARCHAR(160)"
newColumnName="source_state_transaction_id"
oldColumnName="ref_transaction_id"
tableName="utxo_transaction_sources"/>

<renameColumn columnDataType="INT"
newColumnName="source_state_idx"
oldColumnName="ref_leaf_idx"
tableName="utxo_transaction_sources"/>

<!-- Drop the utxo_transaction_cpk table -->
<dropTable tableName="utxo_transaction_cpk"/>
Expand Down Expand Up @@ -145,7 +159,6 @@
</addColumn>

<!-- Populate utxo_transaction_metadata. Postgresql only since, no other dbs were supported before 5.1. So only Postgres can have data which needs to be migrated. -->
<!-- ^^ is this correct?? -->
<sql dbms="postgresql">
INSERT INTO utxo_transaction_metadata
SELECT DISTINCT
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ cordaProductVersion = 5.1.0
# NOTE: update this each time this module contains a breaking change
## NOTE: currently this is a top level revision, so all API versions will line up, but this could be moved to
## a per module property in which case module versions can change independently.
cordaApiRevision = 33
cordaApiRevision = 34

# Main
kotlinVersion = 1.8.21
Expand Down