I have an issue with `sqldelight` and release vers...
# squarelibraries
p
I have an issue with
sqldelight
and release version of android app. I have the file favourites.sq and
CREATE TABLE
statement into it. On debug version of the app it works, but on release it is not creating the table and app crash with error:
Copy code
no such table: favourite
. I found somewhere on slack that I can put
CREATE TABLE
also in 1.sqm. I did that and surprisingly it works. Unfortunatelly, on debug version I go t the error now:
Copy code
table favourite already exists
How can I get rid of it and why the release version of the app needs the migration file if I actually do not migrate anything ? ­čśĽ
It turned out there was a db named the same in the ancient version of the app. The legacy code for that DB was erased, but the files remained for some users. It was hard to track, but now I have changed the file name, erase the legacy db files and everything works as expected. ­čÖé
101 Views