Skip to content

Commit 3a311fe

Browse files
poadmarc0der
authored andcommitted
[Review fix] Fix the same wrong
1 parent f2d70cd commit 3a311fe

File tree

1 file changed

+28
-15
lines changed

1 file changed

+28
-15
lines changed

src/main/scala/io/sdkman/changelogs/java/AzulZuluFxMigrations.scala

Lines changed: 28 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,10 @@ class AzulZuluFxMigrations {
99

1010
@ChangeSet(
1111
order = "0001",
12-
id = "0001-add_zulufx_8_0_242",
13-
author = "dimitryc"
12+
id = "0001-add_zulufx_8_0_232",
13+
author = "poad"
1414
)
1515
def migrate0001(implicit db: MongoDatabase) = {
16-
Seq(Linux64, Windows, MacOSX).foreach(
17-
platform =>
18-
removeVersion(candidate = "java", version = "8.0.202-zulu", platform)
19-
)
2016
List(
2117
Version(
2218
"java",
@@ -42,36 +38,53 @@ class AzulZuluFxMigrations {
4238
).validate().insert()
4339
}
4440

45-
@ChangeSet(order = "0002", id = "0002-add_zulufx_11_0_6", author = "dimitryc")
41+
@ChangeSet(order = "0002", id = "0002-add_zulufx_11_0_5", author = "poad")
4642
def migrate0002(implicit db: MongoDatabase) = {
47-
Seq(Linux64, Windows, MacOSX).foreach(
48-
platform =>
49-
removeVersion(candidate = "java", version = "11.0.2-zulu", platform)
50-
)
5143
List(
5244
Version(
5345
"java",
54-
"11_0_6-zulufx",
46+
"11.0.5-zulufx",
5547
"https://cdn.azul.com/zulu/bin/zulu11.35.15-ca-fx-jdk11.0.5-linux_x64.tar.gz",
5648
Linux64,
5749
Some(Zulu)
5850
),
5951
Version(
6052
"java",
61-
"11_0_6-zulufx",
53+
"11.0.5-zulufx",
6254
"https://cdn.azul.com/zulu/bin/zulu11.35.15-ca-fx-jdk11.0.5-win_x64.zip",
6355
Windows,
6456
Some(Zulu)
6557
),
6658
Version(
6759
"java",
68-
"11_0_6-zulufx",
60+
"11.0.5-zulufx",
6961
"https://cdn.azul.com/zulu/bin/zulu11.35.15-ca-fx-jdk11.0.5-macosx_x64.tar.gz",
7062
MacOSX,
7163
Some(Zulu)
7264
)
7365
).validate().insert()
74-
setCandidateDefault("java", "11_0_6-zulufx")
7566
}
7667

68+
@ChangeSet(
69+
order = "0003",
70+
id = "0003-remove_old-zulufx-8.0.202",
71+
author = "poad"
72+
)
73+
def migrate0003(implicit db: MongoDatabase) =
74+
Seq(Linux64, Windows, MacOSX).foreach(
75+
platform =>
76+
removeVersion(candidate = "java", version = "8.0.202-zulufx", platform)
77+
)
78+
79+
@ChangeSet(
80+
order = "0004",
81+
id = "0004-remove_old-zulufx11.0.2",
82+
author = "poad"
83+
)
84+
def migrate0004(implicit db: MongoDatabase) =
85+
Seq(Linux64, Windows, MacOSX).foreach(
86+
platform =>
87+
removeVersion(candidate = "java", version = "11.0.2-zulufx", platform)
88+
)
89+
7790
}

0 commit comments

Comments
 (0)