fixed warning, because field ID is no longer existent
This commit is contained in:
@@ -86,14 +86,14 @@ class ExcursionDBHelper implements IDb{
|
|||||||
Future<void> addTemplate(Map<String, String> templates) async {
|
Future<void> addTemplate(Map<String, String> templates) async {
|
||||||
var excursionDBClient = await dB;
|
var excursionDBClient = await dB;
|
||||||
|
|
||||||
final existingCID = await excursionDBClient.query(
|
// final existingCID = await excursionDBClient.query(
|
||||||
'excursionTemplates',
|
// 'excursionTemplates',
|
||||||
where: 'ID = ?',
|
// where: 'ID = ?',
|
||||||
whereArgs: [templates['ID']],
|
// whereArgs: [templates['ID']],
|
||||||
);
|
// );
|
||||||
if (existingCID.isNotEmpty) {
|
// if (existingCID.isNotEmpty) {
|
||||||
return;
|
// return;
|
||||||
}
|
// }
|
||||||
|
|
||||||
await excursionDBClient.insert(
|
await excursionDBClient.insert(
|
||||||
'excursionTemplates',
|
'excursionTemplates',
|
||||||
|
|||||||
@@ -85,14 +85,14 @@ class PlaceDBHelper implements IDb{
|
|||||||
Future<void> addTemplate(Map<String, String> templates) async {
|
Future<void> addTemplate(Map<String, String> templates) async {
|
||||||
var placeDBClient = await dB;
|
var placeDBClient = await dB;
|
||||||
|
|
||||||
final existingCID = await placeDBClient.query(
|
// final existingCID = await placeDBClient.query(
|
||||||
'placeTemplates',
|
// 'placeTemplates',
|
||||||
where: 'ID = ?',
|
// where: 'ID = ?',
|
||||||
whereArgs: [templates['ID']],
|
// whereArgs: [templates['ID']],
|
||||||
);
|
// );
|
||||||
if (existingCID.isNotEmpty) {
|
// if (existingCID.isNotEmpty) {
|
||||||
return;
|
// return;
|
||||||
}
|
// }
|
||||||
|
|
||||||
await placeDBClient.insert(
|
await placeDBClient.insert(
|
||||||
'placeTemplates',
|
'placeTemplates',
|
||||||
|
|||||||
Reference in New Issue
Block a user