Skip to content

Commit 711a2b0

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

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/model/database.dart

Lines changed: 2 additions & 1 deletion
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:
56+
// * Export the new schema and generate test migrations with drift:
5757
// $ tools/check --fix drift
58+
// and generate database code with build_runner.
5859
// * Write a migration in `onUpgrade` below.
5960
// * Write tests.
6061
@override

0 commit comments

Comments
 (0)