From 957a42a559a0b7b172a2c924e9fc467ffedadb8e Mon Sep 17 00:00:00 2001 From: Jun Matsushita Date: Mon, 17 Mar 2014 06:41:17 +0000 Subject: [PATCH] Do nothing to database on upgrade instead of dropping all --- .../java/com/apb/beacon/data/PBDatabase.java | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/main/java/com/apb/beacon/data/PBDatabase.java b/src/main/java/com/apb/beacon/data/PBDatabase.java index 315ac012..1d38b20b 100644 --- a/src/main/java/com/apb/beacon/data/PBDatabase.java +++ b/src/main/java/com/apb/beacon/data/PBDatabase.java @@ -48,15 +48,15 @@ public void onCreate(SQLiteDatabase db) { @Override public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { - PageDbManager.dropTable(db); - PageStatusDbManager.dropTable(db); - PageItemDbManager.dropTable(db); - PageActionDbManager.dropTable(db); - PageTimerDbManager.dropTable(db); - PageChecklistDbManager.dropTable(db); - HelpPageDbManager.dropTable(db); - - onCreate(db); + //PageDbManager.dropTable(db); + //PageStatusDbManager.dropTable(db); + //PageItemDbManager.dropTable(db); + //PageActionDbManager.dropTable(db); + //PageTimerDbManager.dropTable(db); + //PageChecklistDbManager.dropTable(db); + //HelpPageDbManager.dropTable(db); + + //onCreate(db); } }