> For the complete documentation index, see [llms.txt](https://material-wallpaper.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://material-wallpaper.gitbook.io/docs/migrate-from-older-version/version-2.5.0-to-3.0.0.md).

# Version 2.5.0 to 3.x.x

This guide is for you who want to migrate from **older version (v2.5.0)** to **latest version (v3.0.0)** without losing your previous data, but, to avoid unexpected data loss, we recommend that you backup your data before doing this step, this step is for the **admin panel** as server side.

#### Update Database

1. Login to your cpanel hosting, open **PhpMyAdmin**
2. Select your database and make update by inserting SQL query function on below :

{% code title="SQL QUERY 1" %}

```sql
ALTER TABLE `tbl_gallery` ADD `image_url` TEXT NOT NULL AFTER `download_count`, ADD `type` VARCHAR(45) NOT NULL DEFAULT 'upload' AFTER `image_url`, ADD `featured` VARCHAR(10) NOT NULL DEFAULT 'no' AFTER `type`, ADD `tags` TEXT NOT NULL AFTER `featured`;
```

{% endcode %}

{% code title="SQL QUERY 2" %}

```sql
CREATE TABLE `tbl_purchase_code` ( `id` INT NOT NULL AUTO_INCREMENT , `item_purchase_code` VARCHAR(45) NOT NULL , PRIMARY KEY (`id`)) ENGINE = InnoDB CHARSET=utf8 COLLATE utf8_general_ci;
```

{% endcode %}

{% code title="SQL QUERY 3" %}

```sql
ALTER TABLE `tbl_settings` ADD `privacy_policy` TEXT NOT NULL AFTER `protocol_type`;
```

{% endcode %}

{% embed url="<https://www.youtube.com/watch?v=yo8S8l4xr9I>" %}

#### **Update PHP Script**

1. Login to your cpanel hosting, open **File Manager**
2. Navigate to the directory where you put the php admin panel code
3. **Delete All Old PHP Scripts and folder** in your admin panel directory **EXCEPT** : **‘upload’** and **‘includes’** folder
4. Download [**material\_wallpaper\_admin\_panel\_update\_v300.zip**](https://drive.google.com/open?id=1elJqMuoholiEkgTOqQSqyQL_jE-2cWlI), upload it into your existing admin panel directory and then extract it (this update code same with admin panel code in the Codecanyon download package except upload  and includes folder).
5. After the extract process is complete, refresh it
6. Your Admin Panel is ready to use. (Note : if you use Google Chrome, click **“Ctrl + F5”** to reload the Admin Panel page).

{% embed url="<https://www.youtube.com/watch?v=KpIhYi9QwLQ>" %}
