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.

22 lines
956 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("event"
  9. ).integer("uid", "PRIMARY KEY"
  10. ).integer("year", "NOT NULL"
  11. ).integer("month", "NOT NULL"
  12. ).integer("day", "NOT NULL"
  13. ).integer("hour", "NOT NULL"
  14. ).integer("minute", "NOT NULL"
  15. ).close();
  16. m_statement = create_events.str();
  17. }
  18. };
  19. }
  20. }