示例#1
0
 public function testRemoveIndexWithCustomIndexName()
 {
     //create it
     $this->object->executeDdl('CREATE TABLE `users` ( name varchar(20), age int(3));');
     $this->object->addIndex('users', 'name', array('name' => 'my_special_index'));
     $this->assertTrue($this->object->hasIndex('users', 'name', array('name' => 'my_special_index')));
     //drop it
     $this->object->removeIndex('users', 'name', array('name' => 'my_special_index'));
     $this->assertFalse($this->object->hasIndex('users', 'name', array('name' => 'my_special_index')));
 }