RemindMe/app/src/main/java/codepath/shah/db/MyDatabaseHelper.java
// Method is called during an upgrade of the database,
Method is called during an upgrade of the database.
Method is called during an upgrade of the database .
@Override
    public void onUpgrade(SQLiteDatabase database,int oldVersion,int newVersion){
        Log.w(MyDatabaseHelper.class.getName(),
                "Upgrading database from version " + oldVersion + " to "
                        + newVersion + ", which will destroy all old data");
        database.execSQL("DROP TABLE IF EXISTS MyTasks");
        onCreate(database);
    }
@ Override public void onUpgrade ( SQLiteDatabase database , int oldVersion , int newVersion ) { Log . w ( MyDatabaseHelper . class . getName ( ) , "Upgrading database from version " + oldVersion + " to " + newVersion + ", which will destroy all old data" ) ; database . execSQL ( "DROP TABLE IF EXISTS MyTasks" ) ; onCreate ( database ) ; }
Method is called during an upgrade of the database,
Method is called during an upgrade of the database