mirror of
https://github.com/logto-io/logto.git
synced 2024-12-16 20:26:19 -05:00
refactor(cli): supports latest
version for db alteration (#2177)
This commit is contained in:
parent
fd50304f5f
commit
c492058a0c
1 changed files with 3 additions and 1 deletions
|
@ -42,7 +42,9 @@ export const chooseAlterationsByVersion = async (
|
||||||
.filter((version, index, self) => index === self.findIndex((another) => eq(version, another)))
|
.filter((version, index, self) => index === self.findIndex((another) => eq(version, another)))
|
||||||
.slice()
|
.slice()
|
||||||
.sort((i, j) => compare(j, i));
|
.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]) {
|
if (!versions[0]) {
|
||||||
return [];
|
return [];
|
||||||
|
|
Loading…
Reference in a new issue