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

Add primary keys for diff tables #5730

Merged
merged 1 commit into from
Jul 20, 2022
Merged

Add primary keys for diff tables #5730

merged 1 commit into from
Jul 20, 2022

Conversation

vbaranov
Copy link
Member

@vbaranov vbaranov commented Jul 6, 2022

Motivation

Missing primary keys complicate DB migration to other DB type.

Changelog

Add primary keys repeating already existing unique indexes for the next tables (and remove those unique indexes):

  • public.block_rewards
  • public.address_coin_balances_daily
  • public.emission_rewards
  • public.transaction_forks
  • public.address_coin_balances

Add serial column for address_names table and set it as primary_key

Checklist for your Pull Request (PR)

@vbaranov vbaranov force-pushed the vb-primary-keys branch 3 times, most recently from 7fada92 to 6ae603e Compare July 6, 2022 11:22
@vbaranov vbaranov merged commit a6d72d3 into master Jul 20, 2022
@vbaranov vbaranov deleted the vb-primary-keys branch July 20, 2022 11:21
sidhujag pushed a commit to syscoin/blockscout that referenced this pull request Jul 24, 2022
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.

None yet

1 participant