mirror of
				https://github.com/TeamNewPipe/NewPipe
				synced 2025-10-31 15:23:00 +00:00 
			
		
		
		
	Updated Database (markdown)
| @@ -8,6 +8,12 @@ Basically, stream information is used for feeds, playlists and watch history. | ||||
|  | ||||
|  | ||||
|  | ||||
| <details><summary><i>How to update this diagram?</i></summary> | ||||
|  | ||||
| TODO: Add procedure here. | ||||
|  | ||||
| </details> | ||||
|  | ||||
| ### Modifying the database structure | ||||
| When modifying the database structure, the [database version needs to be increased](https://github.com/TeamNewPipe/NewPipe/blob/dev/app/src/main/java/org/schabi/newpipe/database/AppDatabase.java#L41).   | ||||
| You also need to create a migration to update the structure on installations which run an old database version. This is done in the [`Migrations`](https://github.com/TeamNewPipe/NewPipe/blob/dev/app/src/main/java/org/schabi/newpipe/database/Migrations.java) class. After creating the migration, it needs to be [registered with the database](https://github.com/TeamNewPipe/NewPipe/blob/dev/app/src/main/java/org/schabi/newpipe/NewPipeDatabase.java#L26) to be executed if necessary. | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 litetex
					litetex