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

[1/2][FA migration] Drop generated fields and add KS for unified #493

Merged
merged 5 commits into from
Aug 28, 2024

Conversation

bowenyang007
Copy link
Collaborator

@bowenyang007 bowenyang007 commented Aug 26, 2024

Summary

Migration steps

  1. Swap Hasura to use current_unified_fungible_asset_balances
    [We're here] 2. Add a killswitch on current_unified_fungible_asset_balances_to_be_renamed
    1. In addition, make a migration dropping columns. We want to split dropping columns separately from adding columns back so that we can add the columns without going through diesel migration again.
    2. Deploy the change with KS turned on. This should create no downtime since column dropping is quick.
  2. Add generated columns back in dbeaver
  3. Create new migration with added columns. Then remove KS.
    1. Also need to spin up backfill processor with KS turned off.
  4. Swap Hasura to use current_unified_fungible_asset_balances_to_be_renamed

Backfill later

Devnet: 570187040
Testnet: 5776192143
Mainnet: 1660732247

Test

image
Confirmed that table is empty
image

@bowenyang007 bowenyang007 requested review from rtso and yuunlimm August 26, 2024 22:39
@bowenyang007 bowenyang007 merged commit fc65c59 into main Aug 28, 2024
7 of 8 checks passed
@bowenyang007 bowenyang007 deleted the fa_migration_1 branch August 28, 2024 01:51
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.

3 participants