Fixed
Status Update
Comments
do...@gmail.com <do...@gmail.com> #2
This is a Room feature request, not one for WorkManager.
yb...@google.com <yb...@google.com> #3
WorkManager needs to add a destructive 2 to 1 migration.
do...@gmail.com <do...@gmail.com> #4
The way we're thinking, if a downgrade isn't specified, it should be destructive by default in Room.
yb...@google.com <yb...@google.com> #5
i think it makes sense for downgrades, at least we can make this another flag.
yb...@google.com <yb...@google.com> #6
Would it be possible for WorkManager to use the currently available fallbackToDestructiveMigration() method for its database until the Room API is built and available in a stable release? It should be possible to manually check the forward migrations to make sure they are covered.
do...@gmail.com <do...@gmail.com> #7
actually it could have a dummy migration for +1,+2,+3,+4 versions that does this destructive migration manually.
Description
Version used: 1.0.0
Hi
I'm facing this crash when I try to use LiveData:
java.lang.IllegalArgumentException: There is no table with name 'order'
This is the query code:
@Query("SELECT * FROM 'order' ORDER BY createdAt ASC")
LiveData<List<Order>> getLiveData();
When I use this query code everything works fine:
@Query("SELECT * FROM address WHERE addressStatus <> 'DELETE'")
LiveData<List<Address>> getAll();
When I use others queries with 'order' in the query it works too.
I just started using LiveData and the reserverd word 'order' isn´t working in this case.