Skip to content

Commit

Permalink
🐛 Bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
LittleSheep2Code committed Sep 5, 2024
1 parent ad1c188 commit de3ad4b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion lib/services/database/database.dart
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class AppDatabase extends _$AppDatabase {
AppDatabase() : super(_openConnection());

@override
int get schemaVersion => 2;
int get schemaVersion => 3;

@override
MigrationStrategy get migration {
Expand All @@ -67,6 +67,13 @@ class AppDatabase extends _$AppDatabase {
if (from < 2) {
await m.addColumn(preferencesTable, preferencesTable.playerWakelock);
}
if (from > 3) {
await m.addColumn(
preferencesTable, preferencesTable.neteaseApiInstance);
await m.dropColumn(
preferencesTable, preferencesTable.audioSource.name);
await m.addColumn(preferencesTable, preferencesTable.audioSource);
}
},
);
}
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ publish_to: "none" # Remove this line if you wish to publish to pub.dev
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
# In Windows, build-name is used as the major, minor, and patch parts
# of the product and file versions while build-number is used as the build suffix.
version: 1.0.0+8
version: 1.0.0+9

environment:
sdk: ^3.5.0
Expand Down

0 comments on commit de3ad4b

Please sign in to comment.