Skip to content

Validate version int range #2248

@dereuromark

Description

@dereuromark

If people by accident add a

config/Migrations/202311128071500_Migration.php

instead of

config/Migrations/20231112807150_Migration.php

it actually works but is a date for in the future (year 20231 or sth^^).
This messes up the "order".

Fair to say we would directly spot this if we would also display the actual date, not just the timstamp, in the migration output.

I propose we validate this range a bit more carefully.
E.g.
-10 years, +20years
?

Refs dereuromark/cakephp-queue#392 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions