🐛 Bug fixes
This commit is contained in:
parent
ad1c188982
commit
de3ad4b21e
@ -55,7 +55,7 @@ class AppDatabase extends _$AppDatabase {
|
|||||||
AppDatabase() : super(_openConnection());
|
AppDatabase() : super(_openConnection());
|
||||||
|
|
||||||
@override
|
@override
|
||||||
int get schemaVersion => 2;
|
int get schemaVersion => 3;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
MigrationStrategy get migration {
|
MigrationStrategy get migration {
|
||||||
@ -67,6 +67,13 @@ class AppDatabase extends _$AppDatabase {
|
|||||||
if (from < 2) {
|
if (from < 2) {
|
||||||
await m.addColumn(preferencesTable, preferencesTable.playerWakelock);
|
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);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -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
|
# 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
|
# 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.
|
# 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:
|
environment:
|
||||||
sdk: ^3.5.0
|
sdk: ^3.5.0
|
||||||
|
Loading…
Reference in New Issue
Block a user