strapi/docs/3.x.x/migration/migration-guide-alpha-9-to-alpha-10.md

61 lines
2.0 KiB
Markdown
Raw Normal View History

# Migrating from 3.0.0-alpha.9 to 3.0.0-alpha.10
**Here are the major changes:**
- Add database store config
- New lib input
> Feel free to [join us on Slack](http://slack.strapi.io) and ask questions about the migration process.
## Getting started
Install Strapi `alpha.10.1` globally on your computer. To do so run `npm install strapi@3.0.0-alpha.10.1 -g`.
When it's done, generate a new empty project `strapi new myNewProject` (don't pay attention to the database configuration).
## Configurations
2018-02-15 16:47:57 +01:00
You will have to update just 1 file: `package.json`
2018-02-15 16:47:57 +01:00
- Edit the Strapi's dependencies version: (move Strapi's dependencies to `3.0.0-alpha.10.1` version) in `package.json` file
```json
{
"dependencies": {
"lodash": "4.x.x",
2018-02-15 16:47:57 +01:00
"strapi": "3.0.0-alpha.10.1",
"strapi-mongoose": "3.0.0-alpha.10.1"
}
}
```
## Update the Admin
Delete your old admin folder and replace it by the new one.
## Update the Plugins
Copy this file `/plugins/users-permissions/config/jwt.json` **from your old project** and paste it in the corresponding one in your new project.
Copy the fields and relations you had in your `/plugins/users-permissions/models/User.settings.json` file in the new one.
Then, delete your old `plugins` folder and replace it by the new one.
## ⚠️ Config in database
To let you update your configurations when your application is deployed on multiple server instances, we have created a data store for settings. So we moved all the `users-permissions` plugin's configs in database.
2018-02-15 17:01:10 +01:00
You will have to reconfigure all your `users-permissions` configs from the admin panel. Then delete the `advanced.json`, `email.json` and `grant.json` files from `plugins/users-permissions/config` folder.
## ⚠️ Data type Number
2018-02-15 16:47:57 +01:00
We fixed how mongoose handles the model's `Number` type. Previously, mongoose stored `Number` type as `String` and now it's `Integer`. So you will have to update all your documents which have a type `Number` in its model and replace their `String` value with a `Number` one.
That's all, you have now upgraded to Strapi `alpha.10`.