# Data Storage migration

**URL:** <https://forum.heroiclabs.com/t/data-storage-migration/5086>\
**Category:** Runtime Framework\
**Tags:** server-framework\
**Created:** [March 25, 2024, 11:38am UTC](https://forum.heroiclabs.com/t/data-storage-migration/5086 "2024-03-25T11:38:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![marcusfuu](https://avatars.discourse-cdn.com/v4/letter/m/e9a140/32.png) [@marcusfuu](https://forum.heroiclabs.com/u/marcusfuu)\
**Post date:** [March 25, 2024, 11:38am UTC](https://forum.heroiclabs.com/t/data-storage-migration/5086/1 "2024-03-25T11:38:09Z")

</div>

I’m currently using Nakama and I’m considering migrating my data storage from Nakama’s default database to a custom database with a SQLite-based schema or Self-hosted Nakama. How can I accomplish this?

Versions: Nakama 3.1.7, Nakama Enteprise

---

<div class="post-metadata">

**Author:** ![sesposito](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/sesposito/32/2594_2.png) [@sesposito](https://forum.heroiclabs.com/u/sesposito)\
**Post date:** [March 25, 2024, 2:59pm UTC](https://forum.heroiclabs.com/t/data-storage-migration/5086/2 "2024-03-25T14:59:14Z")

</div>

Hello @marcusfuu,

Nakama is designed to work with CockroachDB and PostgresSQL, some of the under-the-hood queries may not work using other databases.

If you’re on Heroic Cloud and require a data export please contact us at [support@heroiclabs.com](mailto:support@heroiclabs.com) specifying your project and we’ll provide you with a database dump.

---

<div class="post-metadata">

**Author:** ![marcusfuu](https://avatars.discourse-cdn.com/v4/letter/m/e9a140/32.png) [@marcusfuu](https://forum.heroiclabs.com/u/marcusfuu)\
**Post date:** [April 1, 2024, 3:39am UTC](https://forum.heroiclabs.com/t/data-storage-migration/5086/3 "2024-04-01T03:39:49Z")

</div>

So in the future there could be a scenario where we will be migrating over to the existing Cockcroach DB that you guys are using to rqlite. Rqlite is based off SQLite so I’m just wondering on the compatibility on the schemas.

Can we continue using Nakama cloud enterprise being the backbone and configure it to use external database storage? If we could, what are the steps required?

---

<div class="post-metadata">

**Author:** ![sesposito](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/sesposito/32/2594_2.png) [@sesposito](https://forum.heroiclabs.com/u/sesposito)\
**Post date:** [April 1, 2024, 12:29pm UTC](https://forum.heroiclabs.com/t/data-storage-migration/5086/4 "2024-04-01T12:29:20Z")

</div>

We only guarantee compatibility with CockroachDB and PostgresSQL.

I’m not familiar with Rqlite, but glancing at the docs it seems like it’s not wire compatible with PostgresSQL, this alone makes it impossible to use with Nakama, regardless of schema or query compatibility.

What is the motivation to move to something SQLite based?
