|
@@ 189-197 (lines=9) @@
|
| 186 |
|
|
| 187 |
|
abstract public function getGenerateTableWithMultiColumnUniqueIndexSql(); |
| 188 |
|
|
| 189 |
|
public function testGeneratesIndexCreationSql() |
| 190 |
|
{ |
| 191 |
|
$indexDef = new \Doctrine\DBAL\Schema\Index('my_idx', array('user_name', 'last_login')); |
| 192 |
|
|
| 193 |
|
self::assertEquals( |
| 194 |
|
$this->getGenerateIndexSql(), |
| 195 |
|
$this->_platform->getCreateIndexSQL($indexDef, 'mytable') |
| 196 |
|
); |
| 197 |
|
} |
| 198 |
|
|
| 199 |
|
abstract public function getGenerateIndexSql(); |
| 200 |
|
|
|
@@ 201-207 (lines=7) @@
|
| 198 |
|
|
| 199 |
|
abstract public function getGenerateIndexSql(); |
| 200 |
|
|
| 201 |
|
public function testGeneratesUniqueIndexCreationSql() |
| 202 |
|
{ |
| 203 |
|
$indexDef = new \Doctrine\DBAL\Schema\Index('index_name', array('test', 'test2'), true); |
| 204 |
|
|
| 205 |
|
$sql = $this->_platform->getCreateIndexSQL($indexDef, 'test'); |
| 206 |
|
self::assertEquals($this->getGenerateUniqueIndexSql(), $sql); |
| 207 |
|
} |
| 208 |
|
|
| 209 |
|
abstract public function getGenerateUniqueIndexSql(); |
| 210 |
|
|