Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dickermoshe committed Dec 11, 2024
1 parent c9ee6ff commit a415476
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 215 deletions.
7 changes: 4 additions & 3 deletions examples/app/lib/database/database.dart
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import 'package:app/database/database.steps.dart';
import 'package:drift/drift.dart';
import 'package:drift_flutter/drift_flutter.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart' show Colors;
import 'package:riverpod/riverpod.dart';
import 'connection/connection.dart' as impl;

import 'tables.dart';
// Manually generated by `drift_dev schema steps` - this file makes writing
// Manually generated by `drift_dev make-migrations` - this file makes writing
// migrations easier. See this for details:
// https://drift.simonbinder.eu/docs/advanced-features/migrations/#step-by-step
import 'schema_versions.dart';
import 'tables.dart';

// Generated by drift_dev when running `build_runner build`
part 'database.g.dart';
Expand Down Expand Up @@ -44,6 +44,7 @@ class AppDatabase extends _$AppDatabase {
return MigrationStrategy(
onUpgrade: stepByStep(
from1To2: (m, schema) async {
print("Go");
// The todoEntries.dueDate column was added in version 2.
await m.addColumn(schema.todoEntries, schema.todoEntries.dueDate);
},
Expand Down
212 changes: 0 additions & 212 deletions examples/app/lib/database/schema_versions.dart

This file was deleted.

0 comments on commit a415476

Please sign in to comment.