vendor/robmorgan/phinx/tests/Phinx/Db/Adapter/MysqlAdapterTest.php 1 location
|
@@ 579-587 (lines=9) @@
|
576 |
|
$this->assertEquals($limit, $sqlType['limit']); |
577 |
|
} |
578 |
|
|
579 |
|
public function testDropColumn() |
580 |
|
{ |
581 |
|
$table = new \Phinx\Db\Table('t', array(), $this->adapter); |
582 |
|
$table->addColumn('column1', 'string') |
583 |
|
->save(); |
584 |
|
$this->assertTrue($this->adapter->hasColumn('t', 'column1')); |
585 |
|
$this->adapter->dropColumn('t', 'column1'); |
586 |
|
$this->assertFalse($this->adapter->hasColumn('t', 'column1')); |
587 |
|
} |
588 |
|
|
589 |
|
public function testGetColumns() |
590 |
|
{ |
vendor/robmorgan/phinx/tests/Phinx/Db/Adapter/SQLiteAdapterTest.php 1 location
|
@@ 340-348 (lines=9) @@
|
337 |
|
$this->assertNull($rows[1]['dflt_value']); |
338 |
|
} |
339 |
|
|
340 |
|
public function testDropColumn() |
341 |
|
{ |
342 |
|
$table = new \Phinx\Db\Table('t', array(), $this->adapter); |
343 |
|
$table->addColumn('column1', 'string') |
344 |
|
->save(); |
345 |
|
$this->assertTrue($this->adapter->hasColumn('t', 'column1')); |
346 |
|
$this->adapter->dropColumn('t', 'column1'); |
347 |
|
$this->assertFalse($this->adapter->hasColumn('t', 'column1')); |
348 |
|
} |
349 |
|
|
350 |
|
public function testGetColumns() |
351 |
|
{ |
vendor/robmorgan/phinx/tests/Phinx/Db/Adapter/SqlServerAdapterTest.php 1 location
|
@@ 381-389 (lines=9) @@
|
378 |
|
$this->assertSame(0, $columns['column1']->getDefault()); |
379 |
|
} |
380 |
|
|
381 |
|
public function testDropColumn() |
382 |
|
{ |
383 |
|
$table = new \Phinx\Db\Table('t', array(), $this->adapter); |
384 |
|
$table->addColumn('column1', 'string') |
385 |
|
->save(); |
386 |
|
$this->assertTrue($this->adapter->hasColumn('t', 'column1')); |
387 |
|
$this->adapter->dropColumn('t', 'column1'); |
388 |
|
$this->assertFalse($this->adapter->hasColumn('t', 'column1')); |
389 |
|
} |
390 |
|
|
391 |
|
public function testGetColumns() |
392 |
|
{ |
vendor/robmorgan/phinx/tests/Phinx/Db/Adapter/PostgresAdapterTest.php 1 location
|
@@ 454-462 (lines=9) @@
|
451 |
|
} |
452 |
|
} |
453 |
|
|
454 |
|
public function testDropColumn() |
455 |
|
{ |
456 |
|
$table = new \Phinx\Db\Table('t', array(), $this->adapter); |
457 |
|
$table->addColumn('column1', 'string') |
458 |
|
->save(); |
459 |
|
$this->assertTrue($this->adapter->hasColumn('t', 'column1')); |
460 |
|
$this->adapter->dropColumn('t', 'column1'); |
461 |
|
$this->assertFalse($this->adapter->hasColumn('t', 'column1')); |
462 |
|
} |
463 |
|
|
464 |
|
public function testGetColumns() |
465 |
|
{ |