petroski77

Results comments of petroski77

@dslounge I'm experiencing the exact same problem. Did you ever find a solution to this problem? Best regards Christian

Thanks for the answer. Keep up the good work! :)

@Rainer-Lang You've defined the primary key as a Long which can have a null value. If you define the key as long then it probably will work. ;)

The migrations works fine if the database is already created and I go from version 1 to 2. The problem only occurs in the initial state where the database is...

I guess another problem also would be If I create an android app, and it goes through 7 database versions, and thus the database schema changes, how does one ensure...

Ok maybe I have figured this one out ;) On initial release do the following: 1. set AppDatabase.VERSION = 1 2. set migration version = 0 eg. @Migration(version = 0,...

Hi @agrosner No worries :) > Ok so a version 0 migration works? Yes, that definitely seems to be the case. //Christian

Take a look at https://github.com/Raizlabs/DBFlow/issues/160 prehaps you can seed the database in a migration. //Christian

Thanks @agrosner, I'll give it a try. :)