Commit a2f70a65 authored by Tomas Taraba's avatar Tomas Taraba

3386 Change ondelete action from RESTRICT to CASCADE

parent 1a347e6c
......@@ -27,8 +27,8 @@ class UserLabels(Base):
__tablename__ = 'userlabels'
id = Column(Integer, primary_key=True)
user_id = Column(Integer, ForeignKey('', ondelete='RESTRICT'))
label_id = Column(Integer, ForeignKey('', ondelete='RESTRICT'))
user_id = Column(Integer, ForeignKey('', ondelete='CASCADE'))
label_id = Column(Integer, ForeignKey('', ondelete='CASCADE'))
user_features = relationship("UserFeatures", backref=backref("userlabels"))
labels = relationship("Labels", backref=backref("userlabels"))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment