mirror of
https://github.com/zxing/zxing.git
synced 2025-03-05 20:48:51 -08:00
Properly drop table on update
git-svn-id: https://zxing.googlecode.com/svn/trunk@1078 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
parent
4bd0064326
commit
f4940b5782
|
@ -52,7 +52,7 @@ final class DBHelper extends SQLiteOpenHelper {
|
|||
|
||||
@Override
|
||||
public void onUpgrade(SQLiteDatabase sqLiteDatabase, int oldVersion, int newVersion) {
|
||||
sqLiteDatabase.delete(TABLE_NAME, null, null);
|
||||
sqLiteDatabase.execSQL("DROP TABLE IF EXISTS " + TABLE_NAME);
|
||||
onCreate(sqLiteDatabase);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue