-
Notifications
You must be signed in to change notification settings - Fork 528
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
Fix duplicated rows in zkapp_account_precondition table #14785
Fix duplicated rows in zkapp_account_precondition table #14785
Conversation
!ci-build-me |
This reverts commit 4883c25838c8650d74fb51e97baad2c663a60390.
!ci-build-me |
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.
I'm not an expert on this code, but I see the priority is high.
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, small improvements suggested.
...s/archive/zkapp_duplicated_precondition/remove_duplicated_zkapp_account_precondition_rows.sh
Outdated
Show resolved
Hide resolved
...s/archive/zkapp_duplicated_precondition/remove_duplicated_zkapp_account_precondition_rows.sh
Outdated
Show resolved
Hide resolved
Co-authored-by: Serhii Shymkiv <sergey@shimkiv.com>
!ci-build-me |
!ci-build-me |
!approved-for-mainnet |
!ci-build-me |
Added shell script which generated two sql scripts for patching database:
Moreover i've updated zkapp_tables.sql script and added unique constraint so that whenever we bypass Ocaml code and manipulate data directly db constraint will complain
Lastly added update script which adds constraint if we want to patch existing database.
In order to fix current schemas in ITN we need to follow below steps:
zkapp_duplicated_precondition/remove_duplicated_zkapp_account_precondition_rows.sh {schema}
Closes #14777