SQL Model: Forgot MediaEntry.state field
While creating the new SQL model, the "state" field of MediaEntry was left out. Currently using a plain unicode string for it. Maybe should use sqlalchemy.types.Enum?
This commit is contained in:
parent
19ed039ba6
commit
c6263400cf
@ -62,7 +62,7 @@ def convert_media_entries(mk_db):
|
|||||||
copy_attrs(entry, new_entry,
|
copy_attrs(entry, new_entry,
|
||||||
('title', 'slug', 'created',
|
('title', 'slug', 'created',
|
||||||
'description', 'description_html',
|
'description', 'description_html',
|
||||||
'media_type',
|
'media_type', 'state',
|
||||||
'fail_error',
|
'fail_error',
|
||||||
'queued_task_id',))
|
'queued_task_id',))
|
||||||
copy_reference_attr(entry, new_entry, "uploader")
|
copy_reference_attr(entry, new_entry, "uploader")
|
||||||
|
@ -58,6 +58,7 @@ class MediaEntry(Base):
|
|||||||
description = Column(UnicodeText) # ??
|
description = Column(UnicodeText) # ??
|
||||||
description_html = Column(UnicodeText) # ??
|
description_html = Column(UnicodeText) # ??
|
||||||
media_type = Column(Unicode, nullable=False)
|
media_type = Column(Unicode, nullable=False)
|
||||||
|
state = Column(Unicode, nullable=False) # or use sqlalchemy.types.Enum?
|
||||||
|
|
||||||
fail_error = Column(Unicode)
|
fail_error = Column(Unicode)
|
||||||
fail_metadata = Column(UnicodeText)
|
fail_metadata = Column(UnicodeText)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user