1
0
Fork 0
mirror of https://gitlab.com/SIGBUS/nyaa.git synced 2024-12-22 08:49:59 +00:00

Added reports page v2

This commit is contained in:
nyaazi 2017-05-19 20:53:47 +03:00
parent 799d5914d6
commit e6083325d6

View file

@ -391,7 +391,7 @@ class Report(db.Model):
id = db.Column(db.Integer, primary_key=True)
torrent_id = db.Column(db.Integer, db.ForeignKey(
DB_TABLE_PREFIX + 'torrents.id'))
DB_TABLE_PREFIX + 'torrents.id', ondelete='CASCADE'))
user_id = db.Column(db.Integer, db.ForeignKey(
'users.id'))
created_time = db.Column(db.DateTime(timezone=False), default=datetime.utcnow)