Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Update Framework and Lisk-chain to have updated account - Closes #4924 #4991

Merged
merged 7 commits into from
Mar 20, 2020

Conversation

shuse2
Copy link
Collaborator

@shuse2 shuse2 commented Mar 16, 2020

What was the problem?

This PR resolves #4924

How was it solved?

Updated all the required fields for the consensus related changes

How was it tested?

  • Corresponding tests are added

@shuse2 shuse2 self-assigned this Mar 16, 2020
elements/lisk-chain/src/account.ts Outdated Show resolved Hide resolved
elements/lisk-chain/src/account.ts Outdated Show resolved Hide resolved
framework/src/application/storage/entities/account.js Outdated Show resolved Hide resolved
framework/src/application/storage/entities/account.js Outdated Show resolved Hide resolved
ALTER TABLE "mem_accounts" ADD COLUMN IF NOT EXISTS "totalVotesReceived" BIGINT NOT NULL DEFAULT 0;
ALTER TABLE "mem_accounts" ADD COLUMN IF NOT EXISTS "delegate" jsonb;
ALTER TABLE "mem_accounts" ADD COLUMN IF NOT EXISTS "votes" jsonb;
ALTER TABLE "mem_accounts" ADD COLUMN IF NOT EXISTS "unlocking" jsonb;
Copy link
Contributor

Choose a reason for hiding this comment

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

I prefer to have atomic migration for each change, not so strict, but see if you can split these to multiple migrations.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

wouldn't it better if all related changes are in the one file? what's the benefit of splitting to each file?

@shuse2 shuse2 merged commit 54d4067 into development Mar 20, 2020
@shuse2 shuse2 deleted the 4924-update_account_properties branch March 20, 2020 13:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update account with new properties
3 participants