Skip to content

Commit

Permalink
Add sql_default value to self_checked column
Browse files Browse the repository at this point in the history
  • Loading branch information
xoriole committed Dec 23, 2020
1 parent 74be259 commit cee19a5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class TorrentState(db.Entity):
seeders = orm.Optional(int, default=0)
leechers = orm.Optional(int, default=0)
last_check = orm.Optional(int, size=64, default=0)
self_checked = orm.Optional(bool, default=False)
self_checked = orm.Optional(bool, default=False, sql_default='0')
metadata = orm.Set('TorrentMetadata', reverse='health')
trackers = orm.Set('TrackerState', reverse='torrents')

Expand Down

0 comments on commit cee19a5

Please sign in to comment.