https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
f

Fail

08/15/2019, 8:47 AM
Hi all! When I use SqlDelight then how to drop database when application installed? Can it do without migrations?
m

mbonnin

08/15/2019, 8:52 AM
You might find more help in #squarelibraries
I guess you could just delete the files on the filesystem for each platform implementation. Or maybe use in-memory temp tables for actual MPP?
f

Fail

08/15/2019, 3:39 PM
Yes, that's exactly what I have to do. I am surprised that the database is not deleted automatically even if I deleted the application on the Android device. Or am I doing something wrong or is this a major mistake from data security.
m

mbonnin

08/15/2019, 3:41 PM
Maybe you have auto-backup enabled
An old version of your DB might be restored when you re-install the app
Not sure if that could happen during development
The other option is if you're storing your DB in external storage. This is not always flushed when uninstalling the app
f

Fail

08/16/2019, 1:29 PM
Most likely this is the option
118 Views