protected function makeAlterMigration(MigrationInput $input, MigrationCapsule $migration, MigrationChangeCapsule $changeCapsule)
    {
        $stub = $this->getStubContent('migration', $input->template);

        $blueprint = $this->getSchemaUpAlterBlueprint($input, $changeCapsule);
        $downBlueprint = $this->getSchemaDownAlterBlueprint($input, $changeCapsule);
        $this->replaceSchemaUp($stub, $this->getSchemaUpCreateCommand($input, $blueprint, 'table'))
            ->replaceSchemaDown($stub, $this->getSchemaUpAlterCommand($input, $downBlueprint))
            ->replaceMigationClassName($stub, $migration->className)
            ->createFile($migration->path, $stub)
            ->info('A migration was crafted successfully.');
    }
protected function makeAlterMigration(MigrationInput $input, MigrationCapsule $migration, MigrationChangeCapsule $changeCapsule)
    {
        $stub = $this->getStubContent('migration', $input->template);

        $blueprint = $this->getSchemaUpAlterBlueprint($input, $changeCapsule);
        $downBlueprint = $this->getSchemaDownAlterBlueprint($input, $changeCapsule);
        $this->replaceSchemaUp($stub, $this->getSchemaUpCreateCommand($input, $blueprint, 'table'))
            ->replaceSchemaDown($stub, $this->getSchemaUpAlterCommand($input, $downBlueprint))
            ->replaceMigationClassName($stub, $migration->className)
            ->createFile($migration->path, $stub)
            ->info('A migration was crafted successfully.');
    }
protected function makeAlterMigration ( MigrationInput $ input , MigrationCapsule $ migration , MigrationChangeCapsule $ changeCapsule ) { $ stub = $ this -> getStubContent ( 'migration' , $ input -> template ) ; $ blueprint = $ this -> getSchemaUpAlterBlueprint ( $ input , $ changeCapsule ) ; $ downBlueprint = $ this -> getSchemaDownAlterBlueprint ( $ input , $ changeCapsule ) ; $ this -> replaceSchemaUp ( $ stub , $ this -> getSchemaUpCreateCommand ( $ input , $ blueprint , 'table' ) ) -> replaceSchemaDown ( $ stub , $ this -> getSchemaUpAlterCommand ( $ input , $ downBlueprint ) ) -> replaceMigationClassName ( $ stub , $ migration -> className ) -> createFile ( $ migration -> path , $ stub ) -> info ( 'A migration was crafted successfully.' ) ; }
Make an alter migration

@param CrestApps\CodeGenerator\Models\MigrationInput $input
@param CrestApps\CodeGenerator\Models\MigrationCapsule $migration
@param CrestApps\CodeGenerator\Models\MigrationChangeCapsule $changeCapsule

@return void
Make an alter migration