> For the complete documentation index, see [llms.txt](https://picotech.gitbook.io/pico_msg/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://picotech.gitbook.io/pico_msg/how-to/upgrade.md).

# How to upgrade?

### **Upgrade**

1. First replace all the codes from previous version to new version (ex: v1\_0 to v1\_1) except .env file
2. You may want to copy the necessary files like profile picture from previous "**public\uploads**" directory to new "**public\uploads**"
3. Change from **APP\_DEBUG=false** to **APP\_DEBUG=true** in .env file
4. Add or change from old version to new version (ex: APP\_VERSION=1.0 to APP\_VERSION=1.1) in .env file (project zip file name is the new version number)
5. Go to the url "**{your\_host}/process/upgrade**" ( you will show a message 'Database upgrade has been finished' )
6. Change from **APP\_DEBUG=true** to **APP\_DEBUG=false** in .env file

{% hint style="danger" %}

#### **Make a copy of your database and code before upgrading**

{% endhint %}
