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

  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("id", "NOT NULL PRIMARY KEY"
  10. ).text("uid", "NOT NULL UNIQUE"
  11. ).text("summary", "NOT NULL"
  12. ).integer("dtstart", "NOT NULL"
  13. ).integer("dtend", "NOT NULL"
  14. ).text("location"
  15. ).text("filename", "NOT NULL"
  16. ).close();
  17. m_statement = create_events.str();
  18. }
  19. };
  20. }
  21. }