Commit 7ab366f
committed
refactor(Preferences): use
Uses the `MIGRATION` length to determine the appropriate migrations to be run.
This works, as opposed to Room migrations, there is no `AutoMigration`, i.e. no
version increase without a corresponding `PreferenceMigration`. By
automatically determining the preference version, we avoid issues, where a new
migration is created, but never actually run, as the version is not incremented.
Ref: libre-tube@c746647MIGRATION length as version1 parent b908dbd commit 7ab366f
1 file changed
Lines changed: 4 additions & 11 deletions
Lines changed: 4 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | 38 | | |
45 | | - | |
| 39 | + | |
| 40 | + | |
46 | 41 | | |
47 | | - | |
| 42 | + | |
48 | 43 | | |
49 | 44 | | |
50 | 45 | | |
| |||
68 | 63 | | |
69 | 64 | | |
70 | 65 | | |
71 | | - | |
72 | | - | |
73 | 66 | | |
74 | 67 | | |
75 | 68 | | |
76 | 69 | | |
77 | | - | |
| 70 | + | |
78 | 71 | | |
79 | 72 | | |
80 | 73 | | |
| |||
0 commit comments