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('userfeatures.id', ondelete='RESTRICT'))
label_id = Column(Integer, ForeignKey('labels.id', ondelete='RESTRICT'))
user_id = Column(Integer, ForeignKey('userfeatures.id', ondelete='CASCADE'))
label_id = Column(Integer, ForeignKey('labels.id', 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