From 323f7833906361db2ac9cbb1006365dcbd825986 Mon Sep 17 00:00:00 2001 From: jandroav Date: Mon, 26 Feb 2024 07:39:14 +0100 Subject: [PATCH 1/5] feat(liquibaseMigrations.scala): add LiquibaseMigrations class with migration001 method to insert Liquibase candidate into the database --- .../io/sdkman/changelogs/LiquibaseMigrations.scala | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/main/scala/io/sdkman/changelogs/LiquibaseMigrations.scala diff --git a/src/main/scala/io/sdkman/changelogs/LiquibaseMigrations.scala b/src/main/scala/io/sdkman/changelogs/LiquibaseMigrations.scala new file mode 100644 index 00000000..fbc55e99 --- /dev/null +++ b/src/main/scala/io/sdkman/changelogs/LiquibaseMigrations.scala @@ -0,0 +1,13 @@ +@ChangeLog(order = "036") +class LiquibaseMigrations { + @ChangeSet(order = "001", id = "001_add_liquibase_1_2_3", author = "jandroav") + def migration001(implicit db: MongoDatabase) = { + Candidate( + candidate = "liquibase", + name = "Liquibase", + description = "Innovate faster with database DevOps. Automated, secure, and compliant database change management pipelines that accelerate delivery and reduce toil", + websiteUrl = "https://liquibase.com/", + distribution = "UNIVERSAL" + ).insert() + } +} From 428eb14b95618e82f46d627700e34846fb849e44 Mon Sep 17 00:00:00 2001 From: jandroav Date: Mon, 26 Feb 2024 13:08:11 +0100 Subject: [PATCH 2/5] chore(LiquibaseMigrations.scala): update @ChangeLog order to "085" for consistency refactor(LiquibaseMigrations.scala): update Liquibase description for clarity and conciseness --- src/main/scala/io/sdkman/changelogs/LiquibaseMigrations.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/scala/io/sdkman/changelogs/LiquibaseMigrations.scala b/src/main/scala/io/sdkman/changelogs/LiquibaseMigrations.scala index fbc55e99..93633c86 100644 --- a/src/main/scala/io/sdkman/changelogs/LiquibaseMigrations.scala +++ b/src/main/scala/io/sdkman/changelogs/LiquibaseMigrations.scala @@ -1,11 +1,11 @@ -@ChangeLog(order = "036") +@ChangeLog(order = "085") class LiquibaseMigrations { @ChangeSet(order = "001", id = "001_add_liquibase_1_2_3", author = "jandroav") def migration001(implicit db: MongoDatabase) = { Candidate( candidate = "liquibase", name = "Liquibase", - description = "Innovate faster with database DevOps. Automated, secure, and compliant database change management pipelines that accelerate delivery and reduce toil", + description = "Liquibase is an open-source database-independent library for tracking, managing and applying database schema changes.", websiteUrl = "https://liquibase.com/", distribution = "UNIVERSAL" ).insert() From 6ff39ff3d062c2cf228bebfd9a10b9f55042e49b Mon Sep 17 00:00:00 2001 From: jandroav Date: Mon, 26 Feb 2024 13:20:45 +0100 Subject: [PATCH 3/5] refactor(LiquibaseMigrations.scala): reformat code for better readability and consistency in indentation and spacing --- .../changelogs/LiquibaseMigrations.scala | 21 ++++++++++--------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/src/main/scala/io/sdkman/changelogs/LiquibaseMigrations.scala b/src/main/scala/io/sdkman/changelogs/LiquibaseMigrations.scala index 93633c86..cd19f2b2 100644 --- a/src/main/scala/io/sdkman/changelogs/LiquibaseMigrations.scala +++ b/src/main/scala/io/sdkman/changelogs/LiquibaseMigrations.scala @@ -1,13 +1,14 @@ @ChangeLog(order = "085") class LiquibaseMigrations { - @ChangeSet(order = "001", id = "001_add_liquibase_1_2_3", author = "jandroav") - def migration001(implicit db: MongoDatabase) = { - Candidate( - candidate = "liquibase", - name = "Liquibase", - description = "Liquibase is an open-source database-independent library for tracking, managing and applying database schema changes.", - websiteUrl = "https://liquibase.com/", - distribution = "UNIVERSAL" - ).insert() - } + @ChangeSet(order = "001", id = "001_add_liquibase_1_2_3", author = "jandroav") + def migration001(implicit db: MongoDatabase) = { + Candidate( + candidate = "liquibase", + name = "Liquibase", + description = + "Liquibase is an open-source database-independent library for tracking, managing and applying database schema changes.", + websiteUrl = "https://liquibase.com/", + distribution = "UNIVERSAL" + ).insert() + } } From ec2e029e9a93e37b674067937044008de21e7b4e Mon Sep 17 00:00:00 2001 From: jandroav Date: Tue, 27 Feb 2024 07:18:08 +0100 Subject: [PATCH 4/5] chore(LiquibaseMigrations.scala): organize imports and add package declaration for consistency feat(LiquibaseMigrations.scala): add Liquibase migration change log for version 1.2.3 by jandroav --- .../scala/io/sdkman/changelogs/LiquibaseMigrations.scala | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/scala/io/sdkman/changelogs/LiquibaseMigrations.scala b/src/main/scala/io/sdkman/changelogs/LiquibaseMigrations.scala index cd19f2b2..b8acdbe7 100644 --- a/src/main/scala/io/sdkman/changelogs/LiquibaseMigrations.scala +++ b/src/main/scala/io/sdkman/changelogs/LiquibaseMigrations.scala @@ -1,3 +1,8 @@ +package io.sdkman.changelogs + +import com.github.mongobee.changeset.{ChangeLog, ChangeSet} +import com.mongodb.client.MongoDatabase + @ChangeLog(order = "085") class LiquibaseMigrations { @ChangeSet(order = "001", id = "001_add_liquibase_1_2_3", author = "jandroav") From fb7f796b0db0aa166a1823ac4c9efe6850a00d1d Mon Sep 17 00:00:00 2001 From: jandroav Date: Tue, 27 Feb 2024 07:25:36 +0100 Subject: [PATCH 5/5] chore(LiquibaseMigrations.scala): update Liquibase migration id to remove version number for consistency and clarity --- src/main/scala/io/sdkman/changelogs/LiquibaseMigrations.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/scala/io/sdkman/changelogs/LiquibaseMigrations.scala b/src/main/scala/io/sdkman/changelogs/LiquibaseMigrations.scala index b8acdbe7..a7b46042 100644 --- a/src/main/scala/io/sdkman/changelogs/LiquibaseMigrations.scala +++ b/src/main/scala/io/sdkman/changelogs/LiquibaseMigrations.scala @@ -5,7 +5,7 @@ import com.mongodb.client.MongoDatabase @ChangeLog(order = "085") class LiquibaseMigrations { - @ChangeSet(order = "001", id = "001_add_liquibase_1_2_3", author = "jandroav") + @ChangeSet(order = "001", id = "001_add_liquibase", author = "jandroav") def migration001(implicit db: MongoDatabase) = { Candidate( candidate = "liquibase",