Skip to content

Commit cfe2484

Browse files
committed
fix(Database): restore migrate = true and drop lock table in MigrationRunnerTest
1 parent 2d3aa17 commit cfe2484

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎tests/system/Database/Migrations/MigrationRunnerTest.php‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,12 @@ protected function tearDown(): void
6969
{
7070
parent::tearDown();
7171

72+
// To delete data with `$this->regressDatabase()`, set it true.
73+
$this->migrate = true;
7274
$this->regressDatabase();
75+
76+
$forge = Database::forge($this->db);
77+
$forge->dropTable('migrations_lock', true);
7378
}
7479

7580
public function testLoadsDefaultDatabaseWhenNoneSpecified(): void

0 commit comments

Comments
 (0)