Fix database upgrade bug
This commit is contained in:
		
							parent
							
								
									cb8bf870b1
								
							
						
					
					
						commit
						4e855b8132
					
				@ -412,7 +412,6 @@ public class DB {
 | 
			
		||||
 | 
			
		||||
        @Override
 | 
			
		||||
        public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
 | 
			
		||||
            resetTransient(db);
 | 
			
		||||
 | 
			
		||||
            // Migrate repo list to new structure. (No way to change primary
 | 
			
		||||
            // key in sqlite - table must be recreated)
 | 
			
		||||
@ -443,6 +442,11 @@ public class DB {
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            // The other tables are transient and can just be reset. Do this after
 | 
			
		||||
            // the repo table changes though, because it also clears the lastetag
 | 
			
		||||
            // fields which didn't always exist.
 | 
			
		||||
            resetTransient(db);
 | 
			
		||||
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user