Add last_edit to movie and release tables

This commit is contained in:
Ruud committed 2013-03-16 11:51:46 +01:00
1 parent 9402b54f9b
commit d0fc20ca6e
2 files changed
+27 -1

No files matched your search

+2 -1
View File
@@ -45,7 +45,7 @@ class Movie(Entity):
The files belonging to the movie object are global for the whole movie
such as trailers, nfo, thumbnails"""
last_edit = Field(Integer, default = lambda: int(time.time()))
last_edit = Field(Integer, default = lambda: int(time.time()), index = True)
library = ManyToOne('Library', cascade = 'delete, delete-orphan', single_parent = True)
status = ManyToOne('Status')
@@ -95,6 +95,7 @@ class Release(Entity):
"""Logically groups all files that belong to a certain release, such as
parts of a movie, subtitles."""
last_edit = Field(Integer, default = lambda: int(time.time()), index = True)
identifier = Field(String(100), index = True)
movie = ManyToOne('Movie')