This commit is contained in:
parent
0c82cfb041
commit
84cf99fbf8
@ -254,9 +254,9 @@ class Doctrine_Export_Mysql_TestCase extends Doctrine_UnitTestCase
|
|||||||
$this->assertEqual($this->adapter->pop(), 'CREATE TABLE sometable (id INT UNSIGNED AUTO_INCREMENT, content VARCHAR(4), FULLTEXT INDEX myindex (content DESC), PRIMARY KEY(id)) ENGINE = MYISAM');
|
$this->assertEqual($this->adapter->pop(), 'CREATE TABLE sometable (id INT UNSIGNED AUTO_INCREMENT, content VARCHAR(4), FULLTEXT INDEX myindex (content DESC), PRIMARY KEY(id)) ENGINE = MYISAM');
|
||||||
}
|
}
|
||||||
public function testExportSupportsIndexes()
|
public function testExportSupportsIndexes()
|
||||||
{
|
{
|
||||||
$r = new MysqlIndexTestRecord;
|
$r = new MysqlIndexTestRecord;
|
||||||
|
|
||||||
$this->assertEqual($this->adapter->pop(), 'CREATE TABLE mysql_index_test_record (id BIGINT AUTO_INCREMENT, name TEXT, code INT, content TEXT, FULLTEXT INDEX content_idx (content), UNIQUE INDEX namecode_idx (name, code), PRIMARY KEY(id)) ENGINE = MYISAM');
|
$this->assertEqual($this->adapter->pop(), 'CREATE TABLE mysql_index_test_record (id BIGINT AUTO_INCREMENT, name TEXT, code INT, content TEXT, FULLTEXT INDEX content_idx (content), UNIQUE INDEX namecode_idx (name, code), PRIMARY KEY(id)) ENGINE = MYISAM');
|
||||||
}
|
}
|
||||||
public function testExportSupportsForeignKeys()
|
public function testExportSupportsForeignKeys()
|
||||||
@ -293,7 +293,7 @@ class MysqlIndexTestRecord extends Doctrine_Record
|
|||||||
$this->hasColumn('code', 'integer', 4);
|
$this->hasColumn('code', 'integer', 4);
|
||||||
$this->hasColumn('content', 'string', 4000);
|
$this->hasColumn('content', 'string', 4000);
|
||||||
|
|
||||||
$this->index('content', array('fields' => 'content', 'type' => 'fulltext'));
|
$this->index('content', array('fields' => 'content', 'type' => 'fulltext'));
|
||||||
$this->index('namecode', array('fields' => array('name', 'code'),
|
$this->index('namecode', array('fields' => array('name', 'code'),
|
||||||
'type' => 'unique'));
|
'type' => 'unique'));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user