UPGRADE-0.1.x-0.2.0.md
v0.1.x → v0.2.0This guide helps you safely upgrade your Unopim installation from any
v0.1.xversion tov0.2.0. You can follow the manual steps or you can use the automated upgrade script for version 0.1.x to 0.2.0.
Before starting the upgrade process:
mysqldump or your preferred method:mysqldump -u your_db_user -p your_db_name > backup.sql
Make sure to keep these backups safe in case something goes wrong during the upgrade.
.zip file for the latest version v0.2.0Copy the following files from your existing Unopim project to the newly extracted version:
.env filestorage/ folder (to keep your data intact like images)This ensures your environment settings and any uploaded files stay intact during the upgrade.
Navigate to the extracted folder, and install the necessary dependencies with Composer:
composer install
Run the following command to apply any necessary database schema updates:
php artisan migrate
Ensure that the system is cleared of any cached data and properly linked:
php artisan optimize:clear
php artisan storage:link
This step will optimize your application and create the necessary symbolic link to your storage folder.
If you are using a process manager like Supervisor to manage the queue:work command, restart the relevant service to apply the changes. Replace unopim-worker with your actual worker name, if different:
sudo supervisorctl restart unopim-worker
./upgrade_0.1.x_to_0.2.0.sh
After following these steps, your Unopim should be successfully upgraded to version v0.2.0. Test your application thoroughly to make sure everything works as expected.