protected function _generateSafeAlterTableColumnOperation($table, $columns, $functionName)
	{
		$query = "ALTER TABLE $table ";

		foreach ($columns as $columnData)
		{
			$query .= $this->$functionName($table, $columnData) . ',';
		}

		$query = rtrim($query, ',') . ';';

		return $query;
	}
protected function _generateSafeAlterTableColumnOperation($table, $columns, $functionName)
	{
		$query = "ALTER TABLE $table ";

		foreach ($columns as $columnData)
		{
			$query .= $this->$functionName($table, $columnData) . ',';
		}

		$query = rtrim($query, ',') . ';';

		return $query;
	}
protected function _generateSafeAlterTableColumnOperation ( $ table , $ columns , $ functionName ) { $ query = "ALTER TABLE $table " ; foreach ( $ columns as $ columnData ) { $ query .= $ this -> $ functionName ( $ table , $ columnData ) . ',' ; } $ query = rtrim ( $ query , ',' ) . ';' ; return $ query ; }
Generates SQL statements to alter table for each column

@param   string  $table         Given table
@param   array   $columns       Columns to be affected by query
@param   string  $functionName  Function to generate per column statements
@return  string
Generates SQL statements to alter table for each column