Skip to content

Commit

Permalink
fix erroneous dbType check which was assigning the value
Browse files Browse the repository at this point in the history
  • Loading branch information
Alessandro Briosi committed May 23, 2017
1 parent 79ac35b commit c8ec099
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions migrations/Migration.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,15 @@ public function init()

public function dropTable($table)
{
if ($this->dbType = 'sqlsrv') {
if ($this->dbType == 'sqlsrv') {
$this->dropTableConstraints($table);
}
return parent::dropTable($table);
}

public function dropColumn($table, $column)
{
if ($this->dbType = 'sqlsrv') {
if ($this->dbType == 'sqlsrv') {
$this->dropColumnConstraints($table, $column);
}
return parent::dropColumn($table, $column);
Expand Down

0 comments on commit c8ec099

Please sign in to comment.