Migrations\View\Helper\MigrationHelper::columnMethod PHP Method

columnMethod() public method

Returns the method to be used for the column manipulation
public columnMethod ( string $action ) : string
$action string Name of action to take against the table
return string
    public function columnMethod($action)
    {
        if ($action === 'drop_field') {
            return 'removeColumn';
        }
        return 'addColumn';
    }