seperete create_tables

This commit is contained in:
2025-01-31 00:18:58 +01:00
parent 4c38bfe9a6
commit 3ea3ef7c11
3 changed files with 58 additions and 51 deletions

View File

@@ -117,6 +117,7 @@ void call(int sock, sockaddr_in newSocketInfo)
int main()
{
sql::init();
sql::create_tables();
std::thread t(checker);
// Bind the server to a port.
int err = TcpSocket::listent("0.0.0.0", serverPort, call);