@ursus
¿why do you use temporal tables?
¿why the need to drop columns in a room database model?
🤔
u
ursus
11/27/2021, 2:39 AM
well because my requirments changed and I dont need the column anymore, and wondering if I should drop or ignore it, however drop column only works from certain api level, so you need the temp table thing
m
marlonlom
11/27/2021, 2:43 AM
@ursus you could use the @ignore annotation in the column you desire to uncheck.
@Ignore
is a Room-specific annotation, saying that Room should ignore that field or method.
u
ursus
11/27/2021, 2:43 AM
yea I dont use room, but sqldelight
m
marlonlom
11/27/2021, 2:52 AM
@ursus mmm right.
with sqldelight, i think you've applied to write a delete statement or similar... but, sqlite has a limited feature about that:
SQLite supports a limited subset of ALTER TABLE. The ALTER TABLE command in SQLite allows the user to rename a table or to add a new column to an existing table. It is not possible to rename a column, remove a column, or add or remove constraints from a table.