Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(migrations): add support for initial migrations (#818)
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
- Loading branch information
Showing
5 changed files
with
404 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.