Hi all, I need help with this error. After adding ...
# multiplatform
k
Hi all, I need help with this error. After adding a table in a database, the app is crashing because the table is not yet created.
f
That's not #multiplatform question. That's probably not even Kotlin question so you might be better asking on Stack Overflow stackoverflow But I'd recommend giving more details next time like what library are you using to manage your database, how are you initialising it and what have you tried so far.
k
@Filip Wiesner Hello, I'm using SQLDelight and I think when adding tables I need to do a migration? But I'm trying to read the documentation and the guide is for adding columns in an existing table. I cannot find a way yet on how to migrate after adding another table from the database. I am very new, I'm not that familiar yet in classifying the errors. But I'm doing multiplatform and trying not to give up. Thanks.
f
I am not too familiar with SQLDelight on mobile but you probably do need a migration if you don't want to lose your data. Migration does not have to alter existing tables, you can crate new or delete existing tables.
If you have questions about migrations or SQLDelight in general, you should ask in #squarelibraries channel ☺️