added buypoint images
This commit is contained in:
@ -49,7 +49,8 @@ class DatabaseHelper{
|
||||
checkin_point REAL,
|
||||
buy_point REAL,
|
||||
hidden_location INTEGER,
|
||||
checkin_image TEXT
|
||||
checkin_image TEXT,
|
||||
buypoint_image TEXT
|
||||
)
|
||||
''');
|
||||
|
||||
@ -259,6 +260,20 @@ class DatabaseHelper{
|
||||
return res;
|
||||
}
|
||||
|
||||
Future<int> updateBuyPoint(Destination destination, String imageUrl)async {
|
||||
print("---- updating puypint image in db -----");
|
||||
Database db = await instance.database;
|
||||
Map<String, dynamic> row = {
|
||||
"buypoint_image": imageUrl
|
||||
};
|
||||
return await db.update(
|
||||
"destination",
|
||||
row,
|
||||
where: 'location_id = ?',
|
||||
whereArgs: [destination.location_id!]
|
||||
);
|
||||
}
|
||||
|
||||
Future<int> updateAction(Destination destination, bool checkin)async {
|
||||
Database db = await instance.database;
|
||||
int act = checkin == false ? 0 : 1;
|
||||
|
||||
Reference in New Issue
Block a user