mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-06-05 21:49:48 +02:00
check if table exists before dropping
This commit is contained in:
@@ -67,7 +67,8 @@ public class DBHelper {
|
||||
}
|
||||
|
||||
public static void dropTable(String tableName, SQLiteDatabase db) {
|
||||
db.delete(tableName, null, null);
|
||||
String statement = "DROP TABLE IF EXISTS '" + tableName + "'";
|
||||
db.execSQL(statement);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user