Skip to content

Commit 6c041b1

Browse files
committed
db [nfc]: Make _dropAndCreateAll static too
Like with _migrationSteps, this ensures we don't accidentally call methods on the AppDatabase instance instead of on the given Migrator.
1 parent 3fc1314 commit 6c041b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/model/database.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ class AppDatabase extends _$AppDatabase {
100100
@override
101101
int get schemaVersion => 4; // See note.
102102

103-
Future<void> _dropAndCreateAll(Migrator m, {
103+
static Future<void> _dropAndCreateAll(Migrator m, {
104104
required int schemaVersion,
105105
}) async {
106106
await m.database.transaction(() async {

0 commit comments

Comments
 (0)