forked from platypush/platypush
Unique constraint on MediaFile.path
This commit is contained in:
parent
497d7770c6
commit
c7f0783615
1 changed files with 1 additions and 1 deletions
|
@ -254,7 +254,7 @@ class MediaFile(Base):
|
|||
id = Column(Integer, primary_key=True)
|
||||
directory_id = Column(Integer, ForeignKey(
|
||||
'MediaDirectory.id', ondelete='CASCADE'), nullable=False)
|
||||
path = Column(String, nullable=False)
|
||||
path = Column(String, nullable=False, unique=True)
|
||||
indexed_at = Column(DateTime)
|
||||
|
||||
@classmethod
|
||||
|
|
Loading…
Reference in a new issue