Mention the new reorganise upgrader command.

This commit is contained in:
Maxime Rainville 2018-04-19 15:34:12 +12:00 committed by GitHub
parent 1448f78a72
commit 9539d17aee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -135,10 +135,16 @@ Code which relies on raw SQL queries to these tables will need to be updated.
`SiteTreeFileExtension` is deprecated, and has it's functionality baked directly into `File` dataobject.
### New upgrader command
The SilverStripe upgrader tool can now be used to convert your `_ss_environment.php` file to an equivalent `.env` file when migrating a SilverStripe 3 project to SilverStripe 4.
### New upgrader commands
Two new commands have been added to the SilverStripe upgrader tool: `environment` and `reorganise`.
`environment` allows you to convert your `_ss_environment.php` file to an equivalent `.env` file when migrating a SilverStripe 3 project to SilverStripe 4.
`reorganise` renames your `mysite` and `mysite/code` folders to `app` and `app/src`. It also warns you of any occurence of `mysite` in your codebase.
```
cd ~/my-project-root
upgrade-code environment --write
upgrade-code reorganise --write
```