1
0
Fork 0
mirror of https://gitlab.com/niansa/asbots.git synced 2025-03-06 20:48:25 +01:00

In ChanServ: renamed main table from "users" to "channels"

This commit is contained in:
Nils 2021-06-28 12:20:40 +02:00
parent 8edc5f68df
commit 2433f56852

View file

@ -44,7 +44,7 @@ async::result<void> ChanServ::intitialize() {
using namespace sqlite_orm;
storage = std::make_unique<Storage>(make_storage(
std::string(getConfig("ChanServ", "database").value_or("chanserv.sqlite")),
make_table("users",
make_table("channels",
make_column("id", &ChannelReg::id, autoincrement(), primary_key()),
make_column("name", &ChannelReg::name),
make_column("owner", &ChannelReg::owner))