Skip to content

Commit 18632e5

Browse files
committed
Merge pull request #427 from EddyK69/schedules
Fixed: SQL error when starting with new DB
2 parents 51dd921 + 54e4bb0 commit 18632e5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

main/SQLHelper.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,10 @@ const char *sqlCreateSetpointTimers =
398398
"[Type] INTEGER NOT NULL, "
399399
"[Temperature] FLOAT DEFAULT 0, "
400400
"[TimerPlan] INTEGER DEFAULT 0, "
401-
"[Days] INTEGER NOT NULL);";
401+
"[Days] INTEGER NOT NULL, "
402+
"[Month] INTEGER DEFAULT 0, "
403+
"[MDay] INTEGER DEFAULT 0, "
404+
"[Occurence] INTEGER DEFAULT 0);";
402405

403406
const char *sqlCreateSharedDevices =
404407
"CREATE TABLE IF NOT EXISTS [SharedDevices] ("

0 commit comments

Comments
 (0)