Skip to content

Commit 3705ff8

Browse files
committed
Compare migration target version with string
1 parent b645948 commit 3705ff8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

system/Database/MigrationRunner.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ protected function checkMigrations(array $migrations, string $method, string $ta
436436
}
437437

438438
// Check if $targetversion file is found
439-
if ($targetversion !== 0 && ! array_key_exists($targetversion, $migrations))
439+
if ($targetversion !== '0' && ! array_key_exists($targetversion, $migrations))
440440
{
441441
if ($this->silent)
442442
{

0 commit comments

Comments
 (0)