diff options
author | tilly-Q <nattilypigeonfowl@gmail.com> | 2014-04-15 13:51:27 -0400 |
---|---|---|
committer | tilly-Q <nattilypigeonfowl@gmail.com> | 2014-04-15 13:51:27 -0400 |
commit | b91df79041f59ec87ad2e6f48ca6aa2a78de3c1d (patch) | |
tree | 043d3ac0d295956af48a26cdc53f45cdcab84579 /mediagoblin/db/models.py | |
parent | fbb13abe9a22d08c3a2b86245cf02c1363c36d86 (diff) | |
download | mediagoblin-b91df79041f59ec87ad2e6f48ca6aa2a78de3c1d.tar.lz mediagoblin-b91df79041f59ec87ad2e6f48ca6aa2a78de3c1d.tar.xz mediagoblin-b91df79041f59ec87ad2e6f48ca6aa2a78de3c1d.zip |
Moved the metadata column to MediaEntry rather than MediaFile
Diffstat (limited to 'mediagoblin/db/models.py')
-rw-r--r-- | mediagoblin/db/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mediagoblin/db/models.py b/mediagoblin/db/models.py index ac69d040..7c0f0bf3 100644 --- a/mediagoblin/db/models.py +++ b/mediagoblin/db/models.py @@ -264,6 +264,7 @@ class MediaEntry(Base, MediaEntryMixin): cascade="all, delete-orphan" ) collections = association_proxy("collections_helper", "in_collection") + metadata = Column(MutationDict.as_mutable(JSONEncoded)) ## TODO # fail_error @@ -420,7 +421,6 @@ class MediaFile(Base): name_id = Column(SmallInteger, ForeignKey(FileKeynames.id), nullable=False) file_path = Column(PathTupleWithSlashes) file_metadata = Column(MutationDict.as_mutable(JSONEncoded)) - work_metadata = Column(MutationDict.as_mutable(JSONEncoded)) __table_args__ = ( PrimaryKeyConstraint('media_entry', 'name_id'), |