Skip to content

Commit

Permalink
Move migration rollback before table drops
Browse files Browse the repository at this point in the history
  • Loading branch information
MGatner authored Sep 9, 2019
1 parent 3201d80 commit df9e369
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/Test/CIDatabaseTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ protected function setUp()
{
$this->migrations->setNamespace($this->namespace);
}
$this->migrations->regress(0, 'tests');

// Delete all of the tables to ensure we're at a clean start.
$tables = $this->db->listTables();
Expand All @@ -192,7 +193,6 @@ protected function setUp()
}
}

$this->migrations->regress(0, 'tests');
$this->migrations->latest('tests');
}

Expand Down

0 comments on commit df9e369

Please sign in to comment.