for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php namespace Anomaly\Streams\Platform\Database\Migration\Console;
use Anomaly\Streams\Platform\Database\Migration\Console\Command\ConfigureCreator;
use Anomaly\Streams\Platform\Database\Migration\MigrationCreator;
use Illuminate\Foundation\Bus\DispatchesJobs;
use Symfony\Component\Console\Input\InputOption;
/**
* Class MigrateMakeCommand
*
* @link http://pyrocms.com/
* @author PyroCMS, Inc. <[email protected]>
* @author Ryan Thompson <[email protected]>
*/
class MigrateMakeCommand extends \Illuminate\Database\Console\Migrations\MigrateMakeCommand
{
use DispatchesJobs;
* The console command signature.
* @var string
protected $signature = 'make:migration {name : The name of the migration.}
{--table= : The table to migrate.}
{--create= : The table to be created.}
{--fields : Create a fields migration.}
{--addon= : The addon to create a migration for.}
{--stream= : The stream to create a migration for.}
{--path= : The location where the migration file should be created.}';
* The migration creator.
* @var MigrationCreator
protected $creator;
* Execute the console command.
public function fire()
$this->dispatch(
new ConfigureCreator(
$this,
$this->input,
$this->creator
)
);
$this->creator->setInput($this->input);
parent::fire();
}