column() public method

Create a column
public column ( string $column_name, string $type, array $options = [] )
$column_name string the column name
$type string the column type
$options array
 /**
  * test that we can generate a table w/o a primary key
  */
 public function test_generate_table_without_primary_key()
 {
     $t1 = new Ruckusing_Adapter_MySQL_TableDefinition($this->adapter, "users", array('id' => false, 'options' => 'Engine=InnoDB'));
     $t1->column("first_name", "string");
     $t1->column("last_name", "string", array('limit' => 32));
     $actual = $t1->finish();
     $col = $this->adapter->column_info("users", "id");
     $this->assertEquals(null, $col);
 }
 /**
  * test custom primary key
  */
 public function test_custom_primary_key_1()
 {
     $t1 = new Ruckusing_Adapter_MySQL_TableDefinition($this->adapter, "users", array('id' => true, 'options' => 'Engine=InnoDB'));
     $t1->column("user_id", "integer", array("primary_key" => true));
     $actual = $t1->finish(true);
     $this->remove_table('users');
 }