Skip to content

Commit

Permalink
Fix tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
dereuromark committed Apr 10, 2020
1 parent a2b84e3 commit 8c0d3e8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion src/Phinx/Db/Adapter/SQLiteAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,6 @@ protected function getAddColumnInstructions(Table $table, Column $column)
$instructions = $this->beginAlterByCopyTable($tableName);

$instructions->addPostStep(function ($state) use ($column) {
$sql = $state['createSQL'];
$sql = preg_replace(
"/\)$/",
sprintf(', %s %s$1)', $this->quoteColumnName($column->getName()), $this->getColumnSqlDefinition($column)),
Expand Down
4 changes: 0 additions & 4 deletions tests/Phinx/Db/Adapter/SQLiteAdapterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -212,10 +212,8 @@ public function testCreateTableWithPrimaryKeyAsUuid()
];
$table = new \Phinx\Db\Table('ztable', $options, $this->adapter);
$table->addColumn('id', 'uuid')->save();
$table->addColumn('user_id', 'integer')->save();
$this->assertTrue($this->adapter->hasColumn('ztable', 'id'));
$this->assertTrue($this->adapter->hasIndex('ztable', 'id'));
$this->assertTrue($this->adapter->hasColumn('ztable', 'user_id'));
}

/**
Expand All @@ -229,10 +227,8 @@ public function testCreateTableWithPrimaryKeyAsBinaryUuid()
];
$table = new \Phinx\Db\Table('ztable', $options, $this->adapter);
$table->addColumn('id', 'binaryuuid')->save();
$table->addColumn('user_id', 'integer')->save();
$this->assertTrue($this->adapter->hasColumn('ztable', 'id'));
$this->assertTrue($this->adapter->hasIndex('ztable', 'id'));
$this->assertTrue($this->adapter->hasColumn('ztable', 'user_id'));
}

public function testCreateTableWithMultipleIndexes()
Expand Down

0 comments on commit 8c0d3e8

Please sign in to comment.