mirror of
https://github.com/strapi/strapi.git
synced 2025-08-03 22:39:01 +00:00
32 lines
1.2 KiB
Markdown
Executable File
32 lines
1.2 KiB
Markdown
Executable File
# strapi-generate-migrations
|
|
|
|
[](https://www.npmjs.org/package/strapi-generate-migrations)
|
|
[](https://www.npmjs.org/package/strapi-generate-migrations)
|
|
[](https://david-dm.org/strapi/strapi-generate-migrations)
|
|
[](https://travis-ci.org/strapi/strapi-generate-migrations)
|
|
[](http://slack.strapi.io)
|
|
|
|
This Strapi generator generates migration files for a Strapi application.
|
|
|
|
Creating new migration files can be achieved by running:
|
|
|
|
```bash
|
|
$ strapi migrate:make <connectionName> <migrationName>
|
|
```
|
|
|
|
Once you have finished writing the migrations, you can update the database by running:
|
|
|
|
```bash
|
|
$ strapi migrate:run <connectionName>
|
|
```
|
|
|
|
## Resources
|
|
|
|
- [MIT License](LICENSE.md)
|
|
|
|
## Links
|
|
|
|
- [Strapi website](http://strapi.io/)
|
|
- [Strapi community on Slack](http://slack.strapi.io)
|
|
- [Strapi news on Twitter](https://twitter.com/strapijs)
|