Skip to content

Add CLI command to validate schema synchronization with the database #299

@charleme

Description

@charleme

Description

It would be useful to have a CLI command that checks whether the generated ORM files (models, DAOs, migrations) are fully synchronized with the actual database schema.

This would be similar in spirit to Doctrine’s doctrine:schema:validate command.
The command would detect differences between the database schema and the generated models, DAOs, and the tdbm.lock definition.

Motivation

Schema drift between code and database happens quite often, usually when developers forget to regenerate ORM files before committing.

Such a command would be especially useful in CI pipelines to ensure that, after each merge, TDBM-generated files are fully in sync with the database.

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