Skip to content

SchemaMigrationService and the schema_migrations table are dead code #1199

Description

@RUKAYAT-CODER

src/migrations/schema-migration.service.ts defines SchemaMigrationService which queries/inserts/deletes from a schema_migrations table:

  • The service is never injected or used anywhere in src/
  • No migration creates a schema_migrations table (migrations use TypeORM's migrations table)

It's misleading dead code that also sits in the migrations directory (it had to be excluded from the migration glob in #1192).

Fix: remove the file (and src/migrations/entities/ if also unused), or wire it up and add the table if it's actually needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions