From: Oleg Broytman Date: Thu, 16 Aug 2018 22:22:11 +0000 (+0300) Subject: Feat(DB): Add column `is_image` X-Git-Tag: 5.1.0~25 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=bfa8949a6a7938586bdd4db9003d85ac0dea588a;p=xsetbg.git Feat(DB): Add column `is_image` --- diff --git a/xsetbg_db.py b/xsetbg_db.py index 35840cc..406ca96 100755 --- a/xsetbg_db.py +++ b/xsetbg_db.py @@ -18,9 +18,11 @@ class XSetBg(SQLObject): full_name = UnicodeCol(alternateID=True) last_shown = IntCol(default=None) # timestamp flag = BoolCol(default=None) + is_image = BoolCol(default=None) last_shown_idx = DatabaseIndex('last_shown') flag_idx = DatabaseIndex('flag') + is_image_idx = DatabaseIndex('is_image') def recreate_db():