From 40db183e3753486deaa43e950fff38579c5ced6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?louiz=E2=80=99?= Date: Fri, 16 Jun 2017 09:52:40 +0200 Subject: Using OptionalBool, add RecordHistoryOptional col into IrcChannelOptions table ref #3269 --- src/database/database.hpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/database/database.hpp') diff --git a/src/database/database.hpp b/src/database/database.hpp index 1ad62fc..28b6b1b 100644 --- a/src/database/database.hpp +++ b/src/database/database.hpp @@ -7,6 +7,8 @@ #include #include +#include + #include #include @@ -82,6 +84,9 @@ class Database static constexpr auto options = ""; RecordHistory(): Column(true) {}}; + struct RecordHistoryOptional: Column { static constexpr auto name = "recordHistory_"; + static constexpr auto options = ""; }; + struct VerifyCert: Column { static constexpr auto name = "verifyCert_"; static constexpr auto options = ""; VerifyCert(): Column(true) {} }; @@ -99,7 +104,7 @@ class Database using IrcServerOptionsTable = Table; using IrcServerOptions = IrcServerOptionsTable::RowType; - using IrcChannelOptionsTable = Table; + using IrcChannelOptionsTable = Table; using IrcChannelOptions = IrcChannelOptionsTable::RowType; Database() = default; -- cgit v1.2.3