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

handle upgrades by taking over the database #6

Open
kletkeman opened this issue May 27, 2016 · 1 comment
Open

handle upgrades by taking over the database #6

kletkeman opened this issue May 27, 2016 · 1 comment
Assignees

Comments

@kletkeman
Copy link
Contributor

kletkeman commented May 27, 2016

Depends on: hyperledger/fabric#1217

We need to be able to upgrade a contract, which of course would be the default behavior in all new version of a contract upon execution of Init().

Each new version will have to implement whatever data migration will be necessary, but by storing data as JSON objects, and by maintaining original JSON tags, we can alleviate the vast majority of data migration requirements.

@kletkeman kletkeman self-assigned this May 27, 2016
@kletkeman
Copy link
Contributor Author

Fabric v1 allows chaincode to be named during deployment, so this is no longer much of an issue. As in, one need only follow best practices for JSON databases to be able to upgrade chaincode and redeploy without difficulty. Do note, though, that fabric v1 introduces a versioning mechanism that is separate from the mechanism we use in our own contracts. I am closing the issue because there is nothing here to implement or fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant