Skip to content

Commit 5ad630e

Browse files
PIG208gnprice
authored andcommitted
db [nfc]: Mention build_runner for schema changes
Signed-off-by: Zixuan James Li <[email protected]>
1 parent d7fbff2 commit 5ad630e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/model/database.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,11 @@ 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.
59+
// See ../../README.md#generated-files for more
60+
// information on using the build_runner.
5861
// * Write a migration in `onUpgrade` below.
5962
// * Write tests.
6063
@override

0 commit comments

Comments
 (0)