Commit 5b6db05e authored by Daniel Wolf's avatar Daniel Wolf

Drop all tables, not just Shortcuts and DNSEntries

parent 8da7cf70
......@@ -107,8 +107,9 @@ public class DatabaseHelper extends com.frostnerd.utils.database.DatabaseHelper
}
cursor.close();
}
db.execSQL("DROP TABLE IF EXISTS Shortcuts");
db.execSQL("DROP TABLE IF EXISTS DNSEntries");
for(String s: getTableNames(db)){
db.execSQL("DROP TABLE IF EXISTS " + s);
}
onCreate(db);
for(DNSEntry entry: entries) insert(entry);
for(Shortcut shortcut: shortcuts) createShortcut(shortcut);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment