# 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 %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://picotech.gitbook.io/pico_msg/how-to/upgrade.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
