Skip to content

Commit

Permalink
Merge pull request #25 from DevKor-github/23-setup-dio
Browse files Browse the repository at this point in the history
23 setup dio
  • Loading branch information
SeoHyeonSim authored Nov 3, 2024
2 parents 8f79a52 + e3ed9f0 commit 9201a6d
Show file tree
Hide file tree
Showing 24 changed files with 1,417 additions and 3,386 deletions.
3,363 changes: 0 additions & 3,363 deletions lib/config/database.g.dart

This file was deleted.

15 changes: 7 additions & 8 deletions lib/config/database.dart → lib/core/database/database.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,11 @@ import 'package:on_time_front/data/daos/preparation_user_dao.dart';

import 'package:on_time_front/data/daos/schedule_dao.dart';
import 'package:on_time_front/data/daos/user_dao.dart';

import '../data/tables/places_table.dart';
import '../data/tables/schedules_table.dart';
import '../data/tables/user_table.dart';
import '../data/tables/preparation_schedule_table.dart';
import '../data/tables/preparation_user_table.dart';
import 'package:on_time_front/data/tables/places_table.dart';
import 'package:on_time_front/data/tables/preparation_schedule_table.dart';
import 'package:on_time_front/data/tables/preparation_user_table.dart';
import 'package:on_time_front/data/tables/schedules_table.dart';
import 'package:on_time_front/data/tables/user_table.dart';

part 'database.g.dart';

Expand All @@ -20,7 +19,7 @@ part 'database.g.dart';
Schedules,
Users,
PreparationSchedules,
PreparationUsers
PreparationUsers,
], daos: [
ScheduleDao,
PlaceDao,
Expand All @@ -41,8 +40,8 @@ class AppDatabase extends _$AppDatabase {
},
onUpgrade: (Migrator m, int from, int to) async {
if (from == 1) {
await m.createTable(preparationUsers);
await m.createTable(preparationSchedules);
await m.createTable(preparationUsers);
}
},
beforeOpen: (details) async {
Expand Down
Loading

0 comments on commit 9201a6d

Please sign in to comment.