protected function getAlterTableSQLQuery($table, $action, $expression = null)
    {
        $alterTable = 'ALTER TABLE '.$table.' '.$action;

        return $expression !== null ? $alterTable.' '.$expression : $alterTable;
    }
protected function getAlterTableSQLQuery($table, $action, $expression = null)
    {
        $alterTable = 'ALTER TABLE '.$table.' '.$action;

        return $expression !== null ? $alterTable.' '.$expression : $alterTable;
    }
protected function getAlterTableSQLQuery ( $ table , $ action , $ expression = null ) { $ alterTable = 'ALTER TABLE ' . $ table . ' ' . $ action ; return $ expression !== null ? $ alterTable . ' ' . $ expression : $ alterTable ; }
Gets an alter table SQL query.

@param string $table      The table name.
@param string $action     The alter table action (ADD, DROP, ...).
@param string $expression The alter table expression.

@return string The alter table query.
Gets an alter table SQL query .