From 0d0b00351e09d8d5381698987c72187a3ec6c8ff Mon Sep 17 00:00:00 2001 From: Ziedelth Date: Wed, 16 Nov 2022 19:06:30 +0100 Subject: [PATCH] Fix --- src/main/kotlin/fr/ziedelth/entities/Anime.kt | 2 +- src/main/kotlin/fr/ziedelth/entities/News.kt | 2 +- src/main/kotlin/fr/ziedelth/utils/plugins/PluginManager.kt | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/fr/ziedelth/entities/Anime.kt b/src/main/kotlin/fr/ziedelth/entities/Anime.kt index 1a7a995..a786a39 100644 --- a/src/main/kotlin/fr/ziedelth/entities/Anime.kt +++ b/src/main/kotlin/fr/ziedelth/entities/Anime.kt @@ -27,7 +27,7 @@ data class Anime( val name: String? = null, @Column(nullable = false) val releaseDate: String = Calendar.getInstance().toISO8601(), - @Column(nullable = false) + @Column(nullable = false, columnDefinition = "TEXT") val image: String? = null, @Column(nullable = true, columnDefinition = "TEXT") val description: String? = null, diff --git a/src/main/kotlin/fr/ziedelth/entities/News.kt b/src/main/kotlin/fr/ziedelth/entities/News.kt index 22944c5..c962ca5 100644 --- a/src/main/kotlin/fr/ziedelth/entities/News.kt +++ b/src/main/kotlin/fr/ziedelth/entities/News.kt @@ -32,7 +32,7 @@ data class News( val hash: String? = null, @Column(nullable = false) val releaseDate: String = Calendar.getInstance().toISO8601(), - @Column(nullable = false) + @Column(nullable = false, columnDefinition = "TEXT") val title: String? = null, @Column(nullable = false, columnDefinition = "TEXT") val description: String? = null, diff --git a/src/main/kotlin/fr/ziedelth/utils/plugins/PluginManager.kt b/src/main/kotlin/fr/ziedelth/utils/plugins/PluginManager.kt index fc23380..2b58b00 100644 --- a/src/main/kotlin/fr/ziedelth/utils/plugins/PluginManager.kt +++ b/src/main/kotlin/fr/ziedelth/utils/plugins/PluginManager.kt @@ -22,6 +22,7 @@ object PluginManager { fun reload() { defaultPluginManager.stopPlugins() defaultPluginManager.unloadPlugins() + listeners.clear() defaultPluginManager = DefaultPluginManager(File("plugins").toPath()) loadPlugins() }