From a8fc450a020e2a82b1b6e65dace9238eb9e807ce Mon Sep 17 00:00:00 2001 From: Stefan Pranger Date: Tue, 29 Jun 2021 16:35:13 +0200 Subject: [PATCH] changed events table migration --- db/migrations/1624829187_create_events.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/db/migrations/1624829187_create_events.h b/db/migrations/1624829187_create_events.h index 35bde41..4d6454c 100644 --- a/db/migrations/1624829187_create_events.h +++ b/db/migrations/1624829187_create_events.h @@ -8,10 +8,10 @@ namespace db { public: m1624829187_create_events() : Migration() { db_builder::Table create_events = db_builder::Table::create("events" - ).integer("uid", "PRIMARY KEY" + ).text("uid", "NOT NULL" ).text("summary", "NOT NULL" - ).text("dtstart", "NOT NULL" - ).text("dtend", "NOT NULL" + ).integer("dtstart", "NOT NULL" + ).integer("dtend", "NOT NULL" ).text("location" ).close(); m_statement = create_events.str();