App Database has Items table with a column Price with datatype Long. Db Version = 1
CREATE TABLE items (_i
As from the docs SQLITE doesn't support Long, check docs here.
INTEGER. The value is a signed integer, stored in 1, 2, 3, 4, 6, or 8 bytes depending on the magnitude of the value.
However as LONG is 8 byte and INTEGER can also save values of 8 bytes, you can use INTEGER.
The simple answer is you CANNOT
Room only supports 5 data types which are TEXT, INTEGER, BLOB, REAL and UNDEFINED.
So, java data types of Boolean, Integer, Long will be all converted to INTEGER in SQL.
What you can do is convert your LONG data type to INTEGER in SQL instead of converting INTEGER data type to LONG in Room in order to make Room support LONG, which Room doesn't support.