Skip to content

Commit

Permalink
move regression test into tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dickermoshe committed Oct 10, 2024
1 parent e7f1ec5 commit fb71a56
Show file tree
Hide file tree
Showing 4 changed files with 1,919 additions and 3,216 deletions.
22 changes: 0 additions & 22 deletions drift/test/generated/todos.dart
Original file line number Diff line number Diff line change
Expand Up @@ -288,24 +288,6 @@ const uuidType = DialectAwareSqlType<UuidValue>.via(
overrides: {SqlDialect.postgres: NativeUuidType()},
);

/// Tables to test that foreign keys which target foreign keys
/// columns are handled correctly in manager code
class FkToPk0 extends Table {
IntColumn get fk => integer().references(FkToPk0, #fk)();
}

class FkToPk1 extends Table {
IntColumn get fk => integer().references(FkToPk2, #fk)();
}

class FkToPk2 extends Table {
IntColumn get fk => integer().references(FkToPk3, #id)();
}

class FkToPk3 extends Table {
IntColumn get id => integer().autoIncrement()();
}

@DriftDatabase(
tables: [
TodosTable,
Expand All @@ -320,10 +302,6 @@ class FkToPk3 extends Table {
Product,
Listing,
Store,
FkToPk0,
FkToPk1,
FkToPk2,
FkToPk3,
],
views: [
CategoryTodoCountView,
Expand Down
Loading

0 comments on commit fb71a56

Please sign in to comment.