Skip to content

Database Migrations inconsistent info about sequential type  #1577

Closed
@Martin-4Spaces

Description

@Martin-4Spaces

Hello

This only applies to migration type sequential.
After this commit adding type hints to system migration class. The supplied version is parsed as int.
If I want to migrate to version 002 it will parse this as int and therefore remove the 00. The class will then check for migration file with the name 2.php and not 002.php. Resulting in an error, migration file not found.
This conflicts with the old sequential style and the docs.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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