# Upgrading to SQLCipher 4

**URL:** https://discuss.zetetic.net/t/upgrading-to-sqlcipher-4/3283
**Category:** SQLCipher FAQ
**Created:** [December 10, 2018, 8:16pm UTC](https://discuss.zetetic.net/t/upgrading-to-sqlcipher-4/3283 "2018-12-10T20:16:07Z")
**Posts on this page:** 1
**Showing post:** 6

<div class="post-metadata">

### Author: ![Gerardo\_Robledo](https://avatars.discourse-cdn.com/v4/letter/g/edb3f5/32.png) [@Gerardo\_Robledo](https://discuss.zetetic.net/u/Gerardo_Robledo)
#### Post date: [January 10, 2019, 12:47am UTC](https://discuss.zetetic.net/t/upgrading-to-sqlcipher-4/3283/6 "2019-01-10T00:47:58Z")

</div>

specifically in Android, at which point do we have to call

> [@sjlombardo](#):
>
> PRAGMA key = ‘\<key material\>’; PRAGMA cipher\_migrate;

because by the moment I call getWritableDatabase(password) it crashes.

---

_[View the full topic](https://discuss.zetetic.net/t/upgrading-to-sqlcipher-4/3283)._
