Changed the name of the metadata column
This commit is contained in:
parent
b91df79041
commit
89b6b55766
@ -728,7 +728,7 @@ def add_metadata_column(db):
|
|||||||
|
|
||||||
media_entry = inspect_table(metadata, 'core__media_entries')
|
media_entry = inspect_table(metadata, 'core__media_entries')
|
||||||
|
|
||||||
col = Column('metadata', MutationDict.as_mutable(JSONEncoded))
|
col = Column('media_metadata', MutationDict.as_mutable(JSONEncoded))
|
||||||
col.create(media_entry)
|
col.create(media_entry)
|
||||||
|
|
||||||
db.commit()
|
db.commit()
|
||||||
|
@ -264,7 +264,7 @@ class MediaEntry(Base, MediaEntryMixin):
|
|||||||
cascade="all, delete-orphan"
|
cascade="all, delete-orphan"
|
||||||
)
|
)
|
||||||
collections = association_proxy("collections_helper", "in_collection")
|
collections = association_proxy("collections_helper", "in_collection")
|
||||||
metadata = Column(MutationDict.as_mutable(JSONEncoded))
|
media_metadata = Column(MutationDict.as_mutable(JSONEncoded))
|
||||||
|
|
||||||
## TODO
|
## TODO
|
||||||
# fail_error
|
# fail_error
|
||||||
|
Loading…
x
Reference in New Issue
Block a user