1
0
Fork 0
mirror of https://github.com/TeamNewPipe/NewPipe.git synced 2025-10-06 12:00:19 +02:00

Setup initial database for feed implementation

- Update the database diagram
- Add new migration for the new tables and fields
- Enable schema exports
This commit is contained in:
Mauricio Colli 2019-04-28 17:43:52 -03:00
parent 0e2f062148
commit e8ab5aacc7
No known key found for this signature in database
GPG key ID: F200BFD6F29DDD85
29 changed files with 1722 additions and 490 deletions

View file

@ -9,7 +9,8 @@ import androidx.room.Room;
import org.schabi.newpipe.database.AppDatabase;
import static org.schabi.newpipe.database.AppDatabase.DATABASE_NAME;
import static org.schabi.newpipe.database.Migrations.MIGRATION_11_12;
import static org.schabi.newpipe.database.Migrations.MIGRATION_1_2;
import static org.schabi.newpipe.database.Migrations.MIGRATION_2_3;
public final class NewPipeDatabase {
@ -22,7 +23,7 @@ public final class NewPipeDatabase {
private static AppDatabase getDatabase(Context context) {
return Room
.databaseBuilder(context.getApplicationContext(), AppDatabase.class, DATABASE_NAME)
.addMigrations(MIGRATION_11_12)
.addMigrations(MIGRATION_1_2, MIGRATION_2_3)
.build();
}