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

tableMethod() public method

Returns the method to be used for the Table::save()
public tableMethod ( string $action ) : string
$action string Name of action to take against the table
return string
    public function tableMethod($action)
    {
        if ($action === 'drop_table') {
            return 'drop';
        }
        if ($action === 'create_table') {
            return 'create';
        }
        return 'update';
    }