summaryrefslogtreecommitdiff
path: root/src/db
diff options
context:
space:
mode:
authorlouie <lshprung@tutanota.com>2023-07-02 17:16:59 -0700
committerlouie <lshprung@tutanota.com>2023-07-02 17:16:59 -0700
commit795301860f3a2a36e66396f2c57552f16d5c170b (patch)
tree130a8c93a3c5c2d8dc60ce9706d87afc0c8bfe73 /src/db
parent8190e3286a3379746f02425979459eb5de136703 (diff)
Use 'struct tm' for date in entries
Diffstat (limited to 'src/db')
-rw-r--r--src/db/sqlite3/db.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/db/sqlite3/db.c b/src/db/sqlite3/db.c
index dd46071..36981d4 100644
--- a/src/db/sqlite3/db.c
+++ b/src/db/sqlite3/db.c
@@ -52,7 +52,7 @@ int create_tables(const char *path) {
"CREATE TABLE IF NOT EXISTS 'Entry' ("
"'ID' int NOT NULL PRIMARY KEY, "
"'Group_ID' int NOT NULL, " // FIXME might want foreign key constraint
- // TODO add due_date here once it's figure out
+ "'Due_date' date DEFAULT NULL, "
"'Alt_due_date' varchar(%d) DEFAULT NULL, "
"'Title' varchar(%d) NOT NULL, "
"'Color' varchar(%d) DEFAULT NULL, "