65 lines
1.3 KiB
PHP
65 lines
1.3 KiB
PHP
<?php namespace System\Console;
|
|
|
|
use Illuminate\Console\Command;
|
|
use System\Classes\UpdateManager;
|
|
use Symfony\Component\Console\Input\InputOption;
|
|
use Symfony\Component\Console\Input\InputArgument;
|
|
|
|
/**
|
|
* Console command to migrate the database.
|
|
*
|
|
* This builds up all database tables that are registered for October and all plugins.
|
|
*
|
|
* @package october\system
|
|
* @author Alexey Bobkov, Samuel Georges
|
|
*/
|
|
class OctoberUp extends Command
|
|
{
|
|
/**
|
|
* The console command name.
|
|
*/
|
|
protected $name = 'october:up';
|
|
|
|
/**
|
|
* The console command description.
|
|
*/
|
|
protected $description = 'Builds database tables for October and all plugins.';
|
|
|
|
/**
|
|
* Create a new command instance.
|
|
*/
|
|
public function __construct()
|
|
{
|
|
parent::__construct();
|
|
}
|
|
|
|
/**
|
|
* Execute the console command.
|
|
*/
|
|
public function fire()
|
|
{
|
|
$this->output->writeln('<info>Migrating application and plugins...</info>');
|
|
|
|
UpdateManager::instance()
|
|
->setNotesOutput($this->output)
|
|
->update()
|
|
;
|
|
}
|
|
|
|
/**
|
|
* Get the console command arguments.
|
|
*/
|
|
protected function getArguments()
|
|
{
|
|
return [];
|
|
}
|
|
|
|
/**
|
|
* Get the console command options.
|
|
*/
|
|
protected function getOptions()
|
|
{
|
|
return [];
|
|
}
|
|
}
|