Replace files in case there are conflicts
This commit is contained in:
parent
009d9957bf
commit
52aa287b27
1 changed files with 2 additions and 1 deletions
|
@ -121,7 +121,8 @@ class FilesDB {
|
|||
|
||||
Future<int> insert(File file) async {
|
||||
final db = await instance.database;
|
||||
return await db.insert(table, _getRowForFile(file));
|
||||
return await db.insert(table, _getRowForFile(file),
|
||||
conflictAlgorithm: ConflictAlgorithm.replace);
|
||||
}
|
||||
|
||||
Future<void> insertMultiple(List<File> files) async {
|
||||
|
|
Loading…
Add table
Reference in a new issue