diff options
Diffstat (limited to 'newspipe/models/tag.py')
-rw-r--r-- | newspipe/models/tag.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/newspipe/models/tag.py b/newspipe/models/tag.py index 02a6d29f..0c961830 100644 --- a/newspipe/models/tag.py +++ b/newspipe/models/tag.py @@ -33,10 +33,8 @@ class BookmarkTag(db.Model): text = db.Column(db.String, unique=False) # foreign keys - user_id = db.Column(db.Integer, db.ForeignKey("user.id", ondelete="CASCADE")) - bookmark_id = db.Column( - db.Integer, db.ForeignKey("bookmark.id", ondelete="CASCADE") - ) + user_id = db.Column(db.Integer, db.ForeignKey("user.id")) + bookmark_id = db.Column(db.Integer, db.ForeignKey("bookmark.id")) # relationships bookmark = db.relationship( |