|
|
@ -7,14 +7,13 @@ namespace db { |
|
|
|
class m1624829187_create_events : public Migration { |
|
|
|
public: |
|
|
|
m1624829187_create_events() : Migration() { |
|
|
|
db_builder::Table create_events = db_builder::Table::create("event" |
|
|
|
).integer("uid", "PRIMARY KEY" |
|
|
|
).integer("year", "NOT NULL" |
|
|
|
).integer("month", "NOT NULL" |
|
|
|
).integer("day", "NOT NULL" |
|
|
|
).integer("hour", "NOT NULL" |
|
|
|
).integer("minute", "NOT NULL" |
|
|
|
).close(); |
|
|
|
db_builder::Table create_events = db_builder::Table::create("events" |
|
|
|
).integer("uid", "PRIMARY KEY" |
|
|
|
).text("summary", "NOT NULL" |
|
|
|
).text("dtstart", "NOT NULL" |
|
|
|
).text("dtend", "NOT NULL" |
|
|
|
).text("location" |
|
|
|
).close(); |
|
|
|
m_statement = create_events.str(); |
|
|
|
} |
|
|
|
}; |
|
|
|