cleaning documentation
This commit is contained in:
@@ -5,14 +5,7 @@ permalink: /dev/migration
|
||||
parent: Hacking
|
||||
---
|
||||
|
||||
### Migration
|
||||
If you need to modify the db's structure while hacking, it's super easy,
|
||||
just change `server/api/models/`.
|
||||
|
||||
If you then decide that your changes are good for production, a
|
||||
sequelize migration is needed:
|
||||
|
||||
#### Create a migration:
|
||||
`./node_modules/.bin/sequelize migration:generate --name your_migration`
|
||||
If you need to modify the db's structure while hacking, just change `server/api/models/` and
|
||||
remember to create a migration, to understand how things works [check the sequelize documentation](https://sequelize.org/master/manual/migrations.html)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user