diff --git a/packages/cli/src/commands/database/alteration/version.ts b/packages/cli/src/commands/database/alteration/version.ts index 43d4695c5..befde14d0 100644 --- a/packages/cli/src/commands/database/alteration/version.ts +++ b/packages/cli/src/commands/database/alteration/version.ts @@ -42,7 +42,9 @@ export const chooseAlterationsByVersion = async ( .filter((version, index, self) => index === self.findIndex((another) => eq(version, another))) .slice() .sort((i, j) => compare(j, i)); - const initialSemVersion = conditional(initialVersion && new SemVer(initialVersion)); + const initialSemVersion = conditional( + initialVersion && initialVersion !== latestTag && new SemVer(initialVersion) + ); if (!versions[0]) { return [];