Skip to content

Commit f410d20

Browse files
committed
fix: Update version check to include specific version condition for migrations
1 parent f136423 commit f410d20

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Commands/UpdateCommand.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,6 @@ private function updatePlugin($currentVersion)
8282
return;
8383
}
8484

85-
$currentVersion = '0.0.96';
86-
8785
if (str_starts_with($currentVersion, 'dev') || ! str_contains($currentVersion, '.')) {
8886
return;
8987
}
@@ -96,7 +94,7 @@ private function updatePlugin($currentVersion)
9694
return;
9795
}
9896

99-
if ($versionParts[0] === '0' && $versionParts[1] === '0') {
97+
if ($versionParts[0] === '0' && $versionParts[1] === '0' && $versionParts[2] === '96') {
10098
$this->forcePublishMigrations = true;
10199
$this->forceRunMigration = true;
102100
}

0 commit comments

Comments
 (0)