You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

23 lines
1.0 KiB

#pragma once
namespace db {
namespace migrations {
namespace db_builder = db::migrations::builder;
class m1624829187_create_events : public Migration {
public:
m1624829187_create_events() : Migration() {
db_builder::Table create_events = db_builder::Table::create("events"
).integer("id", "NOT NULL PRIMARY KEY"
).text("uid", "NOT NULL UNIQUE"
).text("summary", "NOT NULL"
).integer("dtstart", "NOT NULL"
).integer("dtend", "NOT NULL"
).text("location"
).text("filename", "NOT NULL"
).close();
m_statement = create_events.str();
}
};
}
}