Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(migrations): add support for initial migrations #818

Merged
merged 1 commit into from
Sep 6, 2020

Commits on Sep 6, 2020

  1. feat(migrations): add support for initial migrations

    If you want to start using migrations, and you already have the schema generated,
    you can do so by creating so called initial migration:
    
    > Initial migration can be created only if there are no migrations previously
    > generated or executed.
    
    ```sh
    npx mikro-orm migration:create --initial
    ```
    
    This will create the initial migration, containing the schema dump from
    `schema:create` command. The migration will be automatically marked as executed.
    
    Closes #772
    B4nan committed Sep 6, 2020
    Configuration menu
    Copy the full SHA
    7109fc8 View commit details
    Browse the repository at this point in the history