From 53972c687848faeedef764056ee495ab7439f1cf Mon Sep 17 00:00:00 2001 From: philippus Date: Mon, 18 Nov 2024 16:27:14 +0100 Subject: [PATCH] Rename FunctionnalProgrammingAndCategoryTheory and add migration --- .../shared/src/main/scala/scaladex/core/model/Category.scala | 4 +--- .../src/main/scala/scaladex/core/model/MetaCategory.scala | 2 +- .../src/main/resources/migrations/V26__fix_functionnal.sql | 1 + 3 files changed, 3 insertions(+), 4 deletions(-) create mode 100644 modules/infra/src/main/resources/migrations/V26__fix_functionnal.sql diff --git a/modules/core/shared/src/main/scala/scaladex/core/model/Category.scala b/modules/core/shared/src/main/scala/scaladex/core/model/Category.scala index 92494d172..0c8e8ebd8 100644 --- a/modules/core/shared/src/main/scala/scaladex/core/model/Category.scala +++ b/modules/core/shared/src/main/scala/scaladex/core/model/Category.scala @@ -73,9 +73,7 @@ object Category { case object Compilers extends Category case object CodeGeneration extends Category case object DependencyInjection extends Category - case object FunctionnalProgrammingAndCategoryTheory extends Category { - override val title: String = "Functional Programming and Category Theory" - } + case object FunctionalProgrammingAndCategoryTheory extends Category case object LogicProgrammingAndTypeConstraints extends Category case object MiscellaneousUtils extends Category case object Parsing extends Category diff --git a/modules/core/shared/src/main/scala/scaladex/core/model/MetaCategory.scala b/modules/core/shared/src/main/scala/scaladex/core/model/MetaCategory.scala index b909dad7e..f71629763 100644 --- a/modules/core/shared/src/main/scala/scaladex/core/model/MetaCategory.scala +++ b/modules/core/shared/src/main/scala/scaladex/core/model/MetaCategory.scala @@ -70,7 +70,7 @@ object MetaCategory { Category.CodeGeneration, Category.Compilers, Category.DependencyInjection, - Category.FunctionnalProgrammingAndCategoryTheory, + Category.FunctionalProgrammingAndCategoryTheory, Category.LogicProgrammingAndTypeConstraints, Category.MiscellaneousUtils, Category.Parsing, diff --git a/modules/infra/src/main/resources/migrations/V26__fix_functionnal.sql b/modules/infra/src/main/resources/migrations/V26__fix_functionnal.sql new file mode 100644 index 000000000..99e5ea246 --- /dev/null +++ b/modules/infra/src/main/resources/migrations/V26__fix_functionnal.sql @@ -0,0 +1 @@ +UPDATE project_settings SET category='functional-programming-and-category-theory' WHERE category='functionnal-programming-and-category-theory';