Skip to content

Commit d825c14

Browse files
committed
TableMetadataStorage - fix isAlreadyV3Format for the same version values
1 parent a3af231 commit d825c14

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/Metadata/Storage/TableMetadataStorage.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -276,10 +276,11 @@ private function updateMigratedVersionsFromV1orV2toV3(): void
276276

277277
private function isAlreadyV3Format(AvailableMigration $availableMigration, ExecutedMigration $executedMigration): bool
278278
{
279-
return strpos(
280-
(string) $availableMigration->getVersion(),
281-
(string) $executedMigration->getVersion(),
282-
) !== strlen((string) $availableMigration->getVersion()) -
283-
strlen((string) $executedMigration->getVersion());
279+
return $availableMigration->getVersion() !== $executedMigration->getVersion()
280+
&& strpos(
281+
(string) $availableMigration->getVersion(),
282+
(string) $executedMigration->getVersion(),
283+
) !== strlen((string) $availableMigration->getVersion()) -
284+
strlen((string) $executedMigration->getVersion());
284285
}
285286
}

0 commit comments

Comments
 (0)