7

Database onUpgrade method is never called

view full story
linux-howto

http://stackoverflow.com – I'm trying to upgrade my database from version 1 to version 2. I'm assigning DATABASE_VERSION = 2 (first version was assigned too) but onUpgrade never called. May be there is an obvious mistake in the code, but I can't see it beacause I'm trying to solve this problem for a long time. Here is the code of database helper class: public class DatabaseHelper extends SQLiteOpenHelper { private static final int DATABASE_VERSION = 2; public static String DB_PATH; public static String DB_NAME = "db.sqlite3"; public SQLiteDatabase database; public final Context context; publi (HowTos)