when downgrading, reset the database
This commit is contained in:
		
							parent
							
								
									91c84a8588
								
							
						
					
					
						commit
						2cf2fe5341
					
				@ -275,6 +275,12 @@ public class DBHelper extends SQLiteOpenHelper {
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    @Override
 | 
			
		||||
    public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) {
 | 
			
		||||
        super.onDowngrade(db, oldVersion, newVersion);
 | 
			
		||||
        resetTransient(context);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    @Override
 | 
			
		||||
    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user