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

Conversation

nkovacsx
Copy link
Contributor

@nkovacsx nkovacsx commented Oct 10, 2023

Overview

The created and is_ref_input columns are unnecessary to have in the utxo_transaction_sources table.
The created column will be the same as in utxo_transaction_component table and it’s a 1:1 mapping.
Whether a state is an input or a reference can be found out by using the groupIdx column rather than having an extra is_ref_input column.

Also rename the ref_transaction_id and ref_leaf_idx columns as those are quite confusing.

Test plan

  • Run the combined worker with Postgres (5.0) then build the VNode CLI plugin (5.1), run the migration that generates a SQL file. Run the SQL file in the 5.0 DB. Check that the fields are present and data was migrated properly.

  • Run a combined worker with Postgres (5.1) and make sure no errors during startup / e2e tests. Check the DB that transactions are actually stored and the new fields are populated.

@corda-jenkins-ci02
Copy link
Contributor

corda-jenkins-ci02 bot commented Oct 10, 2023

Jenkins build for PR 1288 build 8

Build Successful:
Jar artifact version produced by this PR: 5.1.0.34-alpha-1697185435117

@nkovacsx nkovacsx marked this pull request as ready for review October 12, 2023 07:42
@nkovacsx nkovacsx requested a review from a team as a code owner October 12, 2023 07:42
@nkovacsx nkovacsx changed the title CORE-17430 Add new columns for referenced TX ID and state index CORE-17430 Remove unused columns and rename others in utxo_transaction_sources Oct 12, 2023
@nkovacsx nkovacsx changed the title CORE-17430 Remove unused columns and rename others in utxo_transaction_sources CORE-17430 Modify the utxo_transaction_sources table by removing unused columns and renaming Oct 12, 2023
vlajos
vlajos previously approved these changes Oct 12, 2023
@nkovacsx nkovacsx requested a review from relyafi October 13, 2023 08:30
Copy link
Contributor

@blsemo blsemo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nkovacsx nkovacsx merged commit 2abfc20 into release/os/5.1 Oct 13, 2023
1 check passed
@nkovacsx nkovacsx deleted the nandor/CORE-17430/extra-column-backchain branch October 13, 2023 11:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants