ueen
ueen
Also you probably don't want to use .fallbackToDestructiveMigration() as it drops all rows, which renders importing a pre-populated database useless, this should be closed.
This is not an issue, you just didn't correctly format your Entity Table! It must have the exact same Fields and configurations as the Database you want to import! Take...
Updating the Database still not possible, please provide a fix (the old database needs to be deleted and the new one copied)
I made a fork with destructive upgrading, that should be fine for most use cases, if you need something else, feel free to take a look at SQLiteAssetHelper to modify...
Rooms fallbackToDestructiveMigtation simply drops all rows, addMigration performs actions you specify to convert the rows to the new schema, in this case we only need to tell Room, that the...
First of all don't use queries on the main thread, that's considered bad practice, secondly you need to add the fileextension (if your file has one, which it should), and...
alright, enabled issues, do you have the latest version, what does the stack trace look like -> where exactly is the exception thrown?
> > > @ueen Using Room's `addMigrations` method, right? updated my fork `implementation 'com.github.ueen:RoomAsset:1.2.1'`, manually addMigration is no longer necessary! Just update the version number of the database and in...
Created a new library that allows you to keep specific columns (eg for userdata) while still updating your database, please have a look https://github.com/ueen/RoomAssetHelper
I already did this, but it was apparently scraped. For the reordering I did a library that makes it really easy, without bothering with recyclerview directly, have a look https://github.com/ueen/SortView