Skip to content

Migrator should re-create the schema when the migration date is older than the last file modification #528

@pabloelcolombiano

Description

@pabloelcolombiano

This is a (multiple allowed):

  • [] bug
  • enhancement
  • feature-discussion (RFC)

This is an improvement suggestion for the MIgrator.

The migrator recreates the schema when the migrations have changed. For example: a new migration was added.

However while developing, it can happen that a migration has not been added, but modified (a field renamed, or added, etc). In this case also it is required to recreate the schema, which has to be doen manually.

The proposal would be not to look for new migrations only, but also check that the date of modification of the migration files are older than the date where the respective migration was run.

PR coming if interest arises.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions