!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/home/ccl/vendor/illuminate/database/Console/Migrations/   drwxrwxr-x
Free 12.93 GB of 57.97 GB (22.3%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     MigrateCommand.php (3.03 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace Illuminate\Database\Console\Migrations;

use 
Illuminate\Console\ConfirmableTrait;
use 
Illuminate\Database\Migrations\Migrator;

class 
MigrateCommand extends BaseCommand
{
    use 
ConfirmableTrait;

    
/**
     * The name and signature of the console command.
     *
     * @var string
     */
    
protected $signature 'migrate {--database= : The database connection to use.}
                {--force : Force the operation to run when in production.}
                {--path= : The path of migrations files to be executed.}
                {--pretend : Dump the SQL queries that would be run.}
                {--seed : Indicates if the seed task should be re-run.}
                {--step : Force the migrations to be run so they can be rolled back individually.}'
;

    
/**
     * The console command description.
     *
     * @var string
     */
    
protected $description 'Run the database migrations';

    
/**
     * The migrator instance.
     *
     * @var \Illuminate\Database\Migrations\Migrator
     */
    
protected $migrator;

    
/**
     * Create a new migration command instance.
     *
     * @param  \Illuminate\Database\Migrations\Migrator  $migrator
     * @return void
     */
    
public function __construct(Migrator $migrator)
    {
        
parent::__construct();

        
$this->migrator $migrator;
    }

    
/**
     * Execute the console command.
     *
     * @return void
     */
    
public function handle()
    {
        if (! 
$this->confirmToProceed()) {
            return;
        }

        
$this->prepareDatabase();

        
// Next, we will check to see if a path option has been defined. If it has
        // we will use the path relative to the root of this installation folder
        // so that migrations may be run for any path within the applications.
        
$this->migrator->run($this->getMigrationPaths(), [
            
'pretend' => $this->option('pretend'),
            
'step' => $this->option('step'),
        ]);

        
// Once the migrator has run we will grab the note output and send it out to
        // the console screen, since the migrator itself functions without having
        // any instances of the OutputInterface contract passed into the class.
        
foreach ($this->migrator->getNotes() as $note) {
            
$this->output->writeln($note);
        }

        
// Finally, if the "seed" option has been given, we will re-run the database
        // seed task to re-populate the database, which is convenient when adding
        // a migration and a seed at the same time, as it is only this command.
        
if ($this->option('seed')) {
            
$this->call('db:seed', ['--force' => true]);
        }
    }

    
/**
     * Prepare the migration database for running.
     *
     * @return void
     */
    
protected function prepareDatabase()
    {
        
$this->migrator->setConnection($this->option('database'));

        if (! 
$this->migrator->repositoryExists()) {
            
$this->call(
                
'migrate:install', ['--database' => $this->option('database')]
            );
        }
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0054 ]--