public function column($column_name, $type, $options = array())
{
//if there is already a column by the same name then silently fail
//and continue
if ($this->_table_def->included($column_name) == true) {
return;
}
$column_options = array();
if (array_key_exists('primary_key', $options)) {
if ($options['primary_key'] == true) {
$this->_primary_keys[] = $column_name;
}
}
if (array_key_exists('auto_increment', $options)) {
if ($options['auto_increment'] == true) {
$column_options['auto_increment'] = true;
}
}
$column_options = array_merge($column_options, $options);
$column = new Ruckusing_Adapter_ColumnDefinition($this->_adapter, $column_name, $type, $column_options);
$this->_columns[] = $column;
}