Increase chapter scanlator column max length (#1425)

This commit is contained in:
schroda
2025-06-15 23:13:57 +02:00
committed by GitHub
parent 2757f881dc
commit 483e3a760f
2 changed files with 19 additions and 1 deletions

View File

@@ -21,7 +21,7 @@ object ChapterTable : IntIdTable() {
val name = truncatingVarchar("name", 512)
val date_upload = long("date_upload").default(0)
val chapter_number = float("chapter_number").default(-1f)
val scanlator = truncatingVarchar("scanlator", 128).nullable()
val scanlator = truncatingVarchar("scanlator", 256).nullable()
val isRead = bool("read").default(false)
val isBookmarked = bool("bookmark").default(false)

View File

@@ -0,0 +1,18 @@
package suwayomi.tachidesk.server.database.migration
/*
* Copyright (C) Contributors to the Suwayomi project
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
import de.neonew.exposed.migrations.helpers.SQLMigration
@Suppress("ClassName", "unused")
class M0047_ChapterScanlatorIncreaseLength : SQLMigration() {
override val sql =
"""
ALTER TABLE CHAPTER ALTER COLUMN SCANLATOR VARCHAR(256);`
""".trimIndent()
}