⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.19
Server IP:
178.33.27.10
Server:
Linux cpanel.dev-unit.com 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
Server Software:
Apache/2.4.57 (Unix) OpenSSL/1.0.2k-fips
PHP Version:
8.2.11
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
id
/
crm.dev-unit.com
/
routes
/
View File Name :
upgrade.php
<?php use Illuminate\Support\Facades\Artisan; use Illuminate\Support\Facades\Route; Route::get('/upgrade-to-v4-0-0', function () { Artisan::call('migrate', [ '--force' => true, '--path' => 'database/migrations/2021_09_03_000000_add_uuid_to_failed_jobs_table.php', ]); Artisan::call('migrate', [ '--force' => true, '--path' => 'database/migrations/2021_09_11_113710_add_conversions_disk_column_in_media_table.php', ]); }); Route::get('/upgrade-to-v4-1-0', function () { try { Artisan::call('migrate', [ '--force' => true, '--path' => 'database/migrations/2022_04_27_062115_add_is_admin_field_in_users_table.php', ]); Artisan::call('db:seed', ['--class' => 'SetIsAdminSeeder', '--force' => true]); return 'You are successfully migrate and seeded to v4.1.0'; } catch (Exception $exception) { return $exception->getMessage(); } }); Route::get('/upgrade-to-v4-1-1', function () { try { Artisan::call('migrate', [ '--force' => true, '--path' => 'database/migrations/2022_05_24_073300_change_properties_field_type_in_activity_log_table.php', ]); return 'You are migrate successfully'; } catch (Exception $exception) { return $exception->getMessage(); } }); Route::get('/upgrade-to-v4-1-3', function () { try { Artisan::call('migrate', [ '--force' => true, '--path' => 'database/migrations/2022_07_27_055736_add_hsn_tax_field_in_invoices_and_proposals_and_estimates.php', ]); return 'You are migrate successfully'; } catch (Exception $exception) { return $exception->getMessage(); } }); Route::get('upgrade/database', function () { if (config('app.upgrade_mode')) { Artisan::call('migrate', ['--force' => true]); } });