Skip to content

Commit 23559d6

Browse files
committed
db [nfc]: Mention build_runner for schema changes
Signed-off-by: Zixuan James Li <[email protected]>
1 parent adc856f commit 23559d6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/model/database.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,9 @@ class AppDatabase extends _$AppDatabase {
5353

5454
// When updating the schema:
5555
// * Make the change in the table classes, and bump schemaVersion.
56-
// * Export the new schema and generate test migrations:
57-
// $ tools/check --fix drift
56+
// * Export the new schema and generate test migrations with drift,
57+
// and generate database code with build_runner:
58+
// $ tools/check --fix drift build_runner
5859
// * Write a migration in `onUpgrade` below.
5960
// * Write tests.
6061
@override

0 commit comments

Comments
 (0)