mirror of
https://github.com/johrpan/musicus_mobile.git
synced 2025-10-26 18:57:25 +01:00
Replace existing rows in update functions
This commit is contained in:
parent
319818a276
commit
84cdd51c52
1 changed files with 2 additions and 2 deletions
|
|
@ -38,11 +38,11 @@ class Database extends _$Database {
|
|||
}
|
||||
|
||||
Future<void> updatePerson(Person person) async {
|
||||
await into(persons).insert(person);
|
||||
await into(persons).insert(person, orReplace: true);
|
||||
}
|
||||
|
||||
Future<void> updateInstrument(Instrument instrument) async {
|
||||
await into(instruments).insert(instrument);
|
||||
await into(instruments).insert(instrument, orReplace: true);
|
||||
}
|
||||
|
||||
Future<void> updateWork(WorkModel model, List<WorkModel> parts) async {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue