protected function _safeAddColumn($table, $columnData)
	{
		$columnName = $columnData['name'];
		$addColumnStatement = '';

		if (!$this->db->tableHasField($table, $columnName))
		{
			$addColumnStatement = (new QueryAddColumnStatement($columnData))
				->toString();
		}

		return $addColumnStatement;
	}
protected function _safeAddColumn($table, $columnData)
	{
		$columnName = $columnData['name'];
		$addColumnStatement = '';

		if (!$this->db->tableHasField($table, $columnName))
		{
			$addColumnStatement = (new QueryAddColumnStatement($columnData))
				->toString();
		}

		return $addColumnStatement;
	}
protected function _safeAddColumn ( $ table , $ columnData ) { $ columnName = $ columnData [ 'name' ] ; $ addColumnStatement = '' ; if ( ! $ this -> db -> tableHasField ( $ table , $ columnName ) ) { $ addColumnStatement = ( new QueryAddColumnStatement ( $ columnData ) ) -> toString ( ) ; } return $ addColumnStatement ; }
Generates ADD COLUMN SQL statement if column absent from given table

@param   string  $table       Given table
@param   array   $columnData  Data for column to be added
@return  string
Generates ADD COLUMN SQL statement if column absent from given table