-
Notifications
You must be signed in to change notification settings - Fork 214
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
181 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
server/src/main/kotlin/suwayomi/tachidesk/manga/model/table/SourceMetaTable.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package suwayomi.tachidesk.manga.model.table | ||
|
||
/* | ||
* 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 org.jetbrains.exposed.dao.id.IntIdTable | ||
import suwayomi.tachidesk.manga.model.table.ChapterMetaTable.ref | ||
|
||
/** | ||
* Metadata storage for clients, about Source with id == [ref]. | ||
*/ | ||
object SourceMetaTable : IntIdTable() { | ||
val key = varchar("key", 256) | ||
val value = varchar("value", 4096) | ||
val ref = long("source_ref") | ||
} |
27 changes: 27 additions & 0 deletions
27
server/src/main/kotlin/suwayomi/tachidesk/server/database/migration/M0036_SourceMeta.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
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.AddTableMigration | ||
import org.jetbrains.exposed.dao.id.IntIdTable | ||
import org.jetbrains.exposed.sql.Table | ||
|
||
@Suppress("ClassName", "unused") | ||
class M0036_SourceMeta : AddTableMigration() { | ||
private class SourceMetaTable : IntIdTable() { | ||
val key = varchar("key", 256) | ||
val value = varchar("value", 4096) | ||
val ref = long("source_ref") | ||
} | ||
|
||
override val tables: Array<Table> | ||
get() = | ||
arrayOf( | ||
SourceMetaTable(), | ||
) | ||
} |