Remove history table
This commit is contained in:
@@ -95,7 +95,6 @@ class Release(Entity):
|
||||
status = ManyToOne('Status')
|
||||
quality = ManyToOne('Quality')
|
||||
files = ManyToMany('File', cascade = 'all, delete-orphan', single_parent = True)
|
||||
history = OneToMany('History', cascade = 'all, delete-orphan')
|
||||
info = OneToMany('ReleaseInfo', cascade = 'all, delete-orphan')
|
||||
|
||||
|
||||
@@ -193,17 +192,6 @@ class FileProperty(Entity):
|
||||
file = ManyToOne('File')
|
||||
|
||||
|
||||
class History(Entity):
|
||||
"""History of actions that are connected to a certain release,
|
||||
such as, renamed to, downloaded, deleted, download subtitles etc"""
|
||||
|
||||
added = Field(Integer, default = lambda: int(time.time()))
|
||||
message = Field(UnicodeText)
|
||||
type = Field(Unicode(50))
|
||||
|
||||
release = ManyToOne('Release')
|
||||
|
||||
|
||||
class RenameHistory(Entity):
|
||||
"""Remembers from where to where files have been moved."""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user