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.

21 lines
862 B

  1. #pragma once
  2. namespace db {
  3. namespace migrations {
  4. namespace db_builder = db::migrations::builder;
  5. class m1624829187_create_events : public Migration {
  6. public:
  7. m1624829187_create_events() : Migration() {
  8. db_builder::Table create_events = db_builder::Table::create("events"
  9. ).integer("uid", "PRIMARY KEY"
  10. ).text("summary", "NOT NULL"
  11. ).text("dtstart", "NOT NULL"
  12. ).text("dtend", "NOT NULL"
  13. ).text("location"
  14. ).close();
  15. m_statement = create_events.str();
  16. }
  17. };
  18. }
  19. }