# Migrating users' data in SDK simple-storage to WebExtensions storage

**URL:** <https://discourse.mozilla.org/t/migrating-users-data-in-sdk-simple-storage-to-webextensions-storage/10902>\
**Category:** Development\
**Created:** [September 15, 2016, 10:47pm UTC](https://discourse.mozilla.org/t/migrating-users-data-in-sdk-simple-storage-to-webextensions-storage/10902 "2016-09-15T22:47:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![paulmorris](https://sea1.discourse-cdn.com/flex001/user_avatar/discourse.mozilla.org/paulmorris/32/21623_2.png) [@paulmorris](https://discourse.mozilla.org/u/paulmorris)\
**Post date:** [September 15, 2016, 10:47pm UTC](https://discourse.mozilla.org/t/migrating-users-data-in-sdk-simple-storage-to-webextensions-storage/10902/1 "2016-09-15T22:47:56Z")

</div>

Hi, I’m thinking of porting an SDK add-on to WebExtensions (so it will be guaranteed to work with multi-process Firefox). The add-on stores user data using SDK’s simple-storage. Is there a way to migrate that user data so it is not lost when a user upgrades from an SDK version of the add-on to a new WebExtensions version? Maybe this would require creating an intermediate SDK version that has access to both storage mechanisms that could do the migration? (I think I read that there was an effort to allow SDK add-ons use WebExtensions modules to facilitate migrations?) Thanks, -Paul

---

<div class="post-metadata">

**Author:** ![paulmorris](https://sea1.discourse-cdn.com/flex001/user_avatar/discourse.mozilla.org/paulmorris/32/21623_2.png) [@paulmorris](https://discourse.mozilla.org/u/paulmorris)\
**Post date:** [September 15, 2016, 11:09pm UTC](https://discourse.mozilla.org/t/migrating-users-data-in-sdk-simple-storage-to-webextensions-storage/10902/2 "2016-09-15T23:09:34Z")

</div>

Looks like this is the best bet:  
[https://bugzilla.mozilla.org/show\_bug.cgi?id=1252227](https://bugzilla.mozilla.org/show_bug.cgi?id=1252227)

See also:  
[https://docs.google.com/document/d/18KCEIohJdQBLsHW2A9HkaZKsXhVEIhk8qvSSzU2GkzA/edit](https://docs.google.com/document/d/18KCEIohJdQBLsHW2A9HkaZKsXhVEIhk8qvSSzU2GkzA/edit)

---

<div class="post-metadata">

**Author:** ![freaktechnik](https://sea1.discourse-cdn.com/flex001/user_avatar/discourse.mozilla.org/freaktechnik/32/37766_2.png) [@freaktechnik](https://discourse.mozilla.org/u/freaktechnik)\
**Post date:** [September 16, 2016, 12:30am UTC](https://discourse.mozilla.org/t/migrating-users-data-in-sdk-simple-storage-to-webextensions-storage/10902/3 "2016-09-16T00:30:35Z")

</div>

There will soon be ways to do that, I think the code for it is supposed to land this week and documentation & blog post will follow. It’s also possible that more convenient methods to directly migrate data will come in the future, but that’s not nailed in stone yet afaik.
