aboutsummaryrefslogtreecommitdiff
path: root/src/db/init.py
diff options
context:
space:
mode:
authorJoris2020-05-10 12:50:46 +0200
committerJoris2020-05-10 12:50:46 +0200
commit7372ab407535ade48ce0b642ae051990e3bef7ed (patch)
tree65ae22d72cf10e40e777c4fa1919539d8e065e46 /src/db/init.py
parenta134f20eb62e6d174e7da81fd4adb7ff9e8b3b71 (diff)
downloadtodo-7372ab407535ade48ce0b642ae051990e3bef7ed.tar.gz
todo-7372ab407535ade48ce0b642ae051990e3bef7ed.tar.bz2
todo-7372ab407535ade48ce0b642ae051990e3bef7ed.zip
Add task difficulty and priority fields
Diffstat (limited to 'src/db/init.py')
-rw-r--r--src/db/init.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/db/init.py b/src/db/init.py
index cb8a4a8..83e73f2 100644
--- a/src/db/init.py
+++ b/src/db/init.py
@@ -12,9 +12,11 @@ def init(path):
" created_at INTEGER NOT NULL,"
" modified_at INTEGER NOT NULL,"
" name TEXT NOT NULL,"
- " description TEXT,"
" duration INTEGER,"
- " tag TEXT"
+ " tag TEXT,"
+ " difficulty INT,"
+ " priority INT,"
+ " description TEXT"
" )")
database.commit()
return database