-
Notifications
You must be signed in to change notification settings - Fork 9
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
nkovacsx
merged 14 commits into
release/os/5.1
from
nandor/CORE-17430/extra-column-backchain
Oct 13, 2023
Merged
CORE-17430 Modify the utxo_transaction_sources table by removing unused columns and renaming #1288
nkovacsx
merged 14 commits into
release/os/5.1
from
nandor/CORE-17430/extra-column-backchain
Oct 13, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…nto nandor/CORE-17430/extra-column-backchain
Jenkins build for PR 1288 build 8 Build Successful: |
…nto nandor/CORE-17430/extra-column-backchain
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
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
…nto nandor/CORE-17430/extra-column-backchain
vlajos
previously approved these changes
Oct 12, 2023
…nto nandor/CORE-17430/extra-column-backchain
relyafi
reviewed
Oct 13, 2023
...a/src/main/resources/net/corda/db/schema/vnode-vault/migration/ledger-utxo-creation-v5.1.xml
Outdated
Show resolved
Hide resolved
relyafi
approved these changes
Oct 13, 2023
vlajos
approved these changes
Oct 13, 2023
blsemo
approved these changes
Oct 13, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
The
created
andis_ref_input
columns are unnecessary to have in theutxo_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.