More standard media_data model for ascii.
ascii doesn't use media_data at all. So it needs the most basic media_data model. Fix it to take the current form.
This commit is contained in:
parent
b829595334
commit
8fd81053b4
@ -25,9 +25,9 @@ from sqlalchemy import (
|
|||||||
class AsciiData(Base):
|
class AsciiData(Base):
|
||||||
__tablename__ = "ascii__mediadata"
|
__tablename__ = "ascii__mediadata"
|
||||||
|
|
||||||
id = Column(Integer, primary_key=True)
|
# The primary key *and* reference to the main media_entry
|
||||||
media_entry = Column(
|
media_entry = Column(Integer, ForeignKey('core__media_entries.id'),
|
||||||
Integer, ForeignKey('core__media_entries.id'), nullable=False)
|
primary_key=True)
|
||||||
|
|
||||||
|
|
||||||
DATA_MODEL = AsciiData
|
DATA_MODEL = AsciiData
|
||||||
|
Loading…
x
Reference in New Issue
Block a user