I misspelled one of multiple primary keys like so:
@Entity(primaryKeys: ['foreign_id', 'time'])
class Example {
final int foreignId;
final DateTime time;
}
and flutter did not complain at all and instead only created a single primary key, for time.
This is very hard to notice and should produce an error message.
I misspelled one of multiple primary keys like so:
and flutter did not complain at all and instead only created a single primary key, for
time
. This is very hard to notice and should produce an error message.