LazyRecord\Command\MigrateNewCommand::execute PHP Method

execute() public method

public execute ( $taskName )
    public function execute($taskName)
    {
        $dsId = $this->getCurrentDataSourceId();
        $generator = new MigrationGenerator(Console::getInstance()->getLogger(), 'db/migrations');
        $this->logger->info("Creating migration script for '" . $taskName . "'");
        list($class, $path) = $generator->generate($taskName);
        $this->logger->info("Migration script is generated: {$path}");
    }
MigrateNewCommand