Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions src/config/datasource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,10 @@ export const AppDataSource = new DataSource({
synchronize: false,
// Load all entity files so schema-aware operations (migration:run,
// migration:generate, the drift check) can compare the database against the
// actual entity definitions. `!(migrations|modules)` excludes TypeORM
// helpers under src/migrations and the (non-compiling, unregistered)
// src/modules entities.
// actual entity definitions. `!(migrations|modules)` excludes the
// (non-compiling, unregistered) src/modules entities.
entities: ['src/!(migrations|modules)/**/*.entity.ts'],
// Match only timestamp-prefixed migration files. This deliberately excludes
// non-migration helpers that live under src/migrations (e.g.
// schema-migration.service.ts and the entities/ subdir) which TypeORM would
// otherwise try to load as migrations and reject.
// Match only timestamp-prefixed migration files.
migrations: ['src/migrations/[0-9]*.{ts,js}'],
migrationsTableName: 'migrations',
});
55 changes: 0 additions & 55 deletions src/migrations/entities/migration.entity.ts

This file was deleted.

61 changes: 0 additions & 61 deletions src/migrations/schema-migration.service.ts

This file was deleted.

Loading