File tree Expand file tree Collapse file tree 2 files changed +4
-215
lines changed
examples/app/lib/database Expand file tree Collapse file tree 2 files changed +4
-215
lines changed Original file line number Diff line number Diff line change 1+ import 'package:app/database/database.steps.dart' ;
12import 'package:drift/drift.dart' ;
23import 'package:drift_flutter/drift_flutter.dart' ;
34import 'package:flutter/foundation.dart' ;
45import 'package:flutter/material.dart' show Colors;
56import 'package:riverpod/riverpod.dart' ;
67import 'connection/connection.dart' as impl;
78
8- import 'tables.dart' ;
9- // Manually generated by `drift_dev schema steps` - this file makes writing
9+ // Manually generated by `drift_dev make-migrations` - this file makes writing
1010// migrations easier. See this for details:
1111// https://drift.simonbinder.eu/docs/advanced-features/migrations/#step-by-step
12- import 'schema_versions .dart' ;
12+ import 'tables .dart' ;
1313
1414// Generated by drift_dev when running `build_runner build`
1515part 'database.g.dart' ;
@@ -44,6 +44,7 @@ class AppDatabase extends _$AppDatabase {
4444 return MigrationStrategy (
4545 onUpgrade: stepByStep (
4646 from1To2: (m, schema) async {
47+ print ("Go" );
4748 // The todoEntries.dueDate column was added in version 2.
4849 await m.addColumn (schema.todoEntries, schema.todoEntries.dueDate);
4950 },
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments