Update upating_unit3d_version.md

This commit is contained in:
RKeaves 2025-04-29 02:04:46 -05:00
parent ee26141ffc
commit 52877ac377
1 changed files with 7 additions and 10 deletions

View File

@ -2,15 +2,12 @@
This guide walks you through updating UNIT3D from `v8.3.3` to `v9.0.1` and upgrading PHP from `8.3` to `8.4`. This guide walks you through updating UNIT3D from `v8.3.3` to `v9.0.1` and upgrading PHP from `8.3` to `8.4`.
> [!IMPORTANT]
> Ensure you have a complete backup before proceeding.
## 1. Create Backup ## 1. Create Backup
UNIT3D offers built-in backups. Refer to the Backups page in this wiki for usage. UNIT3D offers built-in backups. Refer to the Backups documentation for usage.
> [!IMPORTANT] > [!IMPORTANT]
> Verify your backups before continuing. > Ensure you have a complete backup before proceeding.
## 2. Enter Maintenance Mode ## 2. Enter Maintenance Mode
@ -72,7 +69,7 @@ In Connection.php line 571:
**Resolve NULL values in tickets table:** **Resolve NULL values in tickets table:**
### 1. Log in to MySQL: 1. Log in to MySQL:
```bash ```bash
mysql -u your_username -p mysql -u your_username -p
@ -86,7 +83,7 @@ USE your_database_name;
2. Fix the Null Values: 2. Fix the Null Values:
Run the following SQL command to update any null entries in the `staff_read` column to 0: **Run** the following SQL command to update any null entries in the `staff_read` column to 0:
```sql ```sql
UPDATE tickets SET staff_read = 0 WHERE staff_read IS NULL; UPDATE tickets SET staff_read = 0 WHERE staff_read IS NULL;
@ -105,7 +102,7 @@ php artisan migrate
--- ---
## 5. Final Reset & Cleanup ## 7. Final Reset & Cleanup
**After updating and migrating, run the following commands to clear caches, reinstall dependencies, rebuild assets, and restart services:** **After updating and migrating, run the following commands to clear caches, reinstall dependencies, rebuild assets, and restart services:**
@ -129,7 +126,7 @@ sudo php artisan auto:sync_torrents_to_meilisearch --wipe && \
sudo php artisan auto:sync_people_to_meilisearch sudo php artisan auto:sync_people_to_meilisearch
``` ```
**Finally, finish the update and bring your site back online:** **Bring the site back online:**
```bash ```bash
sudo php artisan scout:sync-index-settings && \ sudo php artisan scout:sync-index-settings && \
sudo php artisan auto:sync_torrents_to_meilisearch --wipe && \ sudo php artisan auto:sync_torrents_to_meilisearch --wipe && \