# How to change storage safely of upgradeable contract

**URL:** <https://forum.openzeppelin.com/t/how-to-change-storage-safely-of-upgradeable-contract/29829>\
**Category:** Support\
**Tags:** proxies, upgrades, upgrades-plugins\
**Created:** [June 22, 2022, 6:11am UTC](https://forum.openzeppelin.com/t/how-to-change-storage-safely-of-upgradeable-contract/29829 "2022-06-22T06:11:44Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![minh\_trng](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/minh_trng/32/15370_2.png) [@minh\_trng](https://forum.openzeppelin.com/u/minh_trng)\
**Post date:** [June 22, 2022, 7:31pm UTC](https://forum.openzeppelin.com/t/how-to-change-storage-safely-of-upgradeable-contract/29829/3 "2022-06-22T19:31:38Z")

</div>

some patterns you might also want to look into are the gap variable and diamond storage: [The better way to define the variable \_\_gap in the proxy contract](https://forum.openzeppelin.com/t/the-better-way-to-define-the-variable-gap-in-the-proxy-contract/20942)

---

_[View the full topic](https://forum.openzeppelin.com/t/how-to-change-storage-safely-of-upgradeable-contract/29829)._
