From 92f30fbe478e82559611a9d81d0fbc4431dad239 Mon Sep 17 00:00:00 2001 From: alshain Date: Fri, 11 Feb 2011 01:00:45 +0100 Subject: [PATCH] Adds RenameHistory. --- couchpotato/model.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/couchpotato/model.py b/couchpotato/model.py index cc2ef431..bfb9295f 100644 --- a/couchpotato/model.py +++ b/couchpotato/model.py @@ -44,3 +44,10 @@ class FileType(Entity): identifier = Field(String(20), unique=True) name = Field(UnicodeString(255), nullable=False) files = OneToMany('File') + + +class RenameHistory(Entity): + """Remembers from where to where files have been moved.""" + file = ManyToOne('File') + old = Field(String(255)) + new = Field(String(255))