vendor/robmorgan/phinx/tests/Phinx/Db/Adapter/MysqlAdapterTest.php 1 location
|
@@ 249-257 (lines=9) @@
|
246 |
|
$this->assertFalse($this->adapter->hasIndex('table1', array('email', 'user_name'))); |
247 |
|
} |
248 |
|
|
249 |
|
public function testCreateTableWithUniqueIndexes() |
250 |
|
{ |
251 |
|
$table = new \Phinx\Db\Table('table1', array(), $this->adapter); |
252 |
|
$table->addColumn('email', 'string') |
253 |
|
->addIndex('email', array('unique' => true)) |
254 |
|
->save(); |
255 |
|
$this->assertTrue($this->adapter->hasIndex('table1', array('email'))); |
256 |
|
$this->assertFalse($this->adapter->hasIndex('table1', array('email', 'user_email'))); |
257 |
|
} |
258 |
|
|
259 |
|
public function testCreateTableWithNamedIndex() |
260 |
|
{ |
vendor/robmorgan/phinx/tests/Phinx/Db/Adapter/SQLiteAdapterTest.php 1 location
|
@@ 154-162 (lines=9) @@
|
151 |
|
$this->assertFalse($this->adapter->hasIndex('table1', array('email', 'user_name'))); |
152 |
|
} |
153 |
|
|
154 |
|
public function testCreateTableWithUniqueIndexes() |
155 |
|
{ |
156 |
|
$table = new \Phinx\Db\Table('table1', array(), $this->adapter); |
157 |
|
$table->addColumn('email', 'string') |
158 |
|
->addIndex('email', array('unique' => true)) |
159 |
|
->save(); |
160 |
|
$this->assertTrue($this->adapter->hasIndex('table1', array('email'))); |
161 |
|
$this->assertFalse($this->adapter->hasIndex('table1', array('email', 'user_email'))); |
162 |
|
} |
163 |
|
|
164 |
|
public function testCreateTableWithNamedIndexes() |
165 |
|
{ |
vendor/robmorgan/phinx/tests/Phinx/Db/Adapter/SqlServerAdapterTest.php 1 location
|
@@ 174-182 (lines=9) @@
|
171 |
|
$this->assertFalse($this->adapter->hasIndex('table1', array('email', 'user_name'))); |
172 |
|
} |
173 |
|
|
174 |
|
public function testCreateTableWithUniqueIndexes() |
175 |
|
{ |
176 |
|
$table = new \Phinx\Db\Table('table1', array(), $this->adapter); |
177 |
|
$table->addColumn('email', 'string') |
178 |
|
->addIndex('email', array('unique' => true)) |
179 |
|
->save(); |
180 |
|
$this->assertTrue($this->adapter->hasIndex('table1', array('email'))); |
181 |
|
$this->assertFalse($this->adapter->hasIndex('table1', array('email', 'user_email'))); |
182 |
|
} |
183 |
|
|
184 |
|
public function testCreateTableWithNamedIndexes() |
185 |
|
{ |
vendor/robmorgan/phinx/tests/Phinx/Db/Adapter/PostgresAdapterTest.php 1 location
|
@@ 205-213 (lines=9) @@
|
202 |
|
$this->assertFalse($this->adapter->hasIndex('table1', array('email', 'user_name'))); |
203 |
|
} |
204 |
|
|
205 |
|
public function testCreateTableWithUniqueIndexes() |
206 |
|
{ |
207 |
|
$table = new \Phinx\Db\Table('table1', array(), $this->adapter); |
208 |
|
$table->addColumn('email', 'string') |
209 |
|
->addIndex('email', array('unique' => true)) |
210 |
|
->save(); |
211 |
|
$this->assertTrue($this->adapter->hasIndex('table1', array('email'))); |
212 |
|
$this->assertFalse($this->adapter->hasIndex('table1', array('email', 'user_email'))); |
213 |
|
} |
214 |
|
|
215 |
|
public function testCreateTableWithNamedIndexes() |
216 |
|
{ |