/**
  * test custom primary key 1
  */
 public function test_custom_primary_key_1()
 {
     $this->drop_table('users');
     $t1 = new Ruckusing_Adapter_PgSQL_TableDefinition($this->adapter, "users", array('id' => true));
     $t1->column("user_id", "integer", array("primary_key" => true));
     $table_create_sql = $t1->finish(true);
     $this->drop_table('users');
 }
 /**
  * test that we can generate a table w/o a primary key
  */
 public function test_generate_table_without_primary_key()
 {
     $t1 = new Ruckusing_Adapter_PgSQL_TableDefinition($this->adapter, "users", array('id' => false));
     $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);
     $primary_keys = $this->adapter->primary_keys('users');
     $this->assertEquals(array(), $primary_keys);
 }