mirror of
https://github.com/zoriya/Kyoo.git
synced 2026-06-07 23:05:15 -04:00
Implement metadata refresh
This commit is contained in:
@@ -78,7 +78,6 @@ export const entries = schema.table(
|
||||
.notNull()
|
||||
.$onUpdate(() => new Date()),
|
||||
availableSince: timestamp({ withTimezone: true, precision: 3 }),
|
||||
nextRefresh: timestamp({ withTimezone: true, precision: 3 }).notNull(),
|
||||
},
|
||||
(t) => [
|
||||
unique().on(t.showPk, t.seasonNumber, t.episodeNumber),
|
||||
|
||||
@@ -51,7 +51,6 @@ export const seasons = schema.table(
|
||||
updatedAt: timestamp({ withTimezone: true, precision: 3 })
|
||||
.notNull()
|
||||
.$onUpdate(() => new Date()),
|
||||
nextRefresh: timestamp({ withTimezone: true, precision: 3 }).notNull(),
|
||||
},
|
||||
(t) => [
|
||||
unique().on(t.showPk, t.seasonNumber),
|
||||
|
||||
@@ -93,7 +93,7 @@ export const shows = schema.table(
|
||||
updatedAt: timestamp({ withTimezone: true, precision: 3 })
|
||||
.notNull()
|
||||
.$onUpdate(() => new Date()),
|
||||
nextRefresh: timestamp({ withTimezone: true, precision: 3 }).notNull(),
|
||||
nextRefresh: date().notNull(),
|
||||
},
|
||||
(t) => [
|
||||
unique("kind_slug").on(t.kind, t.slug),
|
||||
|
||||
Reference in New Issue
Block a user