mirror of
				https://github.com/pelican-dev/panel.git
				synced 2025-10-31 05:46:51 +01:00 
			
		
		
		
	* Not found property rule * Make these “better” * Day 1 * Day 2 * Day 3 * Dat 4 * Remove disabled check * Day 4 continued * Run pint * Final changes hopefully * Pint fixes * Fix again * Reset these * Update app/Filament/Admin/Pages/Health.php Co-authored-by: MartinOscar <40749467+rmartinoscar@users.noreply.github.com> * Update app/Traits/CheckMigrationsTrait.php Co-authored-by: MartinOscar <40749467+rmartinoscar@users.noreply.github.com> --------- Co-authored-by: MartinOscar <40749467+rmartinoscar@users.noreply.github.com>
		
			
				
	
	
		
			40 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			40 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| namespace App\Traits\Commands;
 | |
| 
 | |
| use App\Traits\CheckMigrationsTrait;
 | |
| use Illuminate\Console\Command;
 | |
| 
 | |
| /**
 | |
|  * @mixin Command
 | |
|  */
 | |
| trait RequiresDatabaseMigrations
 | |
| {
 | |
|     use CheckMigrationsTrait;
 | |
| 
 | |
|     /**
 | |
|      * Throw a massive error into the console to hopefully catch the users attention and get
 | |
|      * them to properly run the migrations rather than ignoring  other previous
 | |
|      * errors...
 | |
|      */
 | |
|     protected function showMigrationWarning(): void
 | |
|     {
 | |
|         $this->getOutput()->writeln('<options=bold>
 | |
| | @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ |
 | |
| |                                                                              |
 | |
| |               Your database has not been properly migrated!                  |
 | |
| |                                                                              |
 | |
| | @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ |</>
 | |
| 
 | |
| You must run the following command to finish migrating your database:
 | |
| 
 | |
|   <fg=green;options=bold>php artisan migrate --step --force</>
 | |
| 
 | |
| You will not be able to use the Panel as expected without fixing your
 | |
| database state by running the command above.
 | |
| ');
 | |
| 
 | |
|         $this->getOutput()->error('You must correct the error above before continuing.');
 | |
|     }
 | |
| }
 |