feat: deprecate history episodeID and fix related code

This commit is contained in:
Simon Ding
2025-02-02 12:49:59 +08:00
parent 1d9eddf050
commit 88492b3922
13 changed files with 38 additions and 605 deletions

View File

@@ -14,7 +14,7 @@ type History struct {
func (History) Fields() []ent.Field {
return []ent.Field{
field.Int("media_id"),
field.Int("episode_id").Optional().Comment("deprecated"),
//field.Int("episode_id").Optional().Comment("deprecated"),
field.Ints("episode_nums").Optional(),
field.Int("season_num").Optional(),
field.String("source_title"),
@@ -26,7 +26,7 @@ func (History) Fields() []ent.Field {
field.String("link").Optional().Comment("deprecated, use hash instead"), //should be magnet link
field.String("hash").Optional().Comment("torrent hash"),
field.Enum("status").Values("running", "success", "fail", "uploading", "seeding"),
field.String("saved").Optional().Comment("deprecated"), //deprecated
//field.String("saved").Optional().Comment("deprecated"), //deprecated
}
}