feat!: added subscriptionTimestamp to SubscriptionsTable
This commit is contained in:
parent
ccf5ef4f0d
commit
63e1d5b283
3 changed files with 9 additions and 3 deletions
|
@ -27,4 +27,5 @@ data class SubscriptionData(
|
|||
val feedColor: FeedColor,
|
||||
val feedName: String,
|
||||
val feedUrl: String,
|
||||
val subscriptionTimestamp: Long,
|
||||
)
|
||||
|
|
|
@ -38,7 +38,8 @@ object SubscriptionRepository {
|
|||
it[SubscriptionsTable.channelId],
|
||||
EmbedUtil.getColorFromString(it[SubscriptionsTable.subscriptionColor]),
|
||||
it[SubscriptionsTable.subscriptionName],
|
||||
it[SubscriptionsTable.feedUrl]
|
||||
it[SubscriptionsTable.feedUrl],
|
||||
it[SubscriptionsTable.subscriptionTimestamp]
|
||||
)
|
||||
)
|
||||
}
|
||||
|
@ -59,7 +60,8 @@ object SubscriptionRepository {
|
|||
it[SubscriptionsTable.channelId],
|
||||
EmbedUtil.getColorFromString(it[SubscriptionsTable.subscriptionColor]),
|
||||
it[SubscriptionsTable.subscriptionName],
|
||||
it[SubscriptionsTable.feedUrl]
|
||||
it[SubscriptionsTable.feedUrl],
|
||||
it[SubscriptionsTable.subscriptionTimestamp]
|
||||
)
|
||||
)
|
||||
}
|
||||
|
@ -80,7 +82,8 @@ object SubscriptionRepository {
|
|||
it[SubscriptionsTable.channelId],
|
||||
EmbedUtil.getColorFromString(it[SubscriptionsTable.subscriptionColor]),
|
||||
it[SubscriptionsTable.subscriptionName],
|
||||
it[SubscriptionsTable.feedUrl]
|
||||
it[SubscriptionsTable.feedUrl],
|
||||
it[SubscriptionsTable.subscriptionTimestamp]
|
||||
)
|
||||
}
|
||||
}
|
||||
|
@ -115,6 +118,7 @@ object SubscriptionRepository {
|
|||
it[subscriptionColor] = data.feedColor.readableName
|
||||
it[subscriptionName] = data.feedName
|
||||
it[feedUrl] = data.feedUrl
|
||||
it[subscriptionTimestamp] = data.subscriptionTimestamp
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -28,4 +28,5 @@ object SubscriptionsTable : Table(name = "subscriptions") {
|
|||
val subscriptionColor = text("subscription_color")
|
||||
val subscriptionName = text("subscription_name")
|
||||
val feedUrl = text("feed_url")
|
||||
val subscriptionTimestamp = long("subscription_timestamp")
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue