|
|
@ -0,0 +1,24 @@ |
|
|
|
#pragma once |
|
|
|
|
|
|
|
#include <boost/type_index.hpp> |
|
|
|
|
|
|
|
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("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(); |
|
|
|
m_statement = create_events.str(); |
|
|
|
} |
|
|
|
}; |
|
|
|
} |
|
|
|
} |