mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-28 21:21:30 +00:00
24 lines
533 B
C++
24 lines
533 B
C++
#include "world/world_server_cli.h"
|
|
|
|
#include "common/database/database_update.h"
|
|
#include "world/worlddb.h"
|
|
|
|
void WorldserverCLI::DatabaseUpdates(int argc, char **argv, argh::parser &cmd, std::string &description)
|
|
{
|
|
description = "Runs database updates manually";
|
|
|
|
std::vector<std::string> options = {
|
|
"--skip-backup",
|
|
};
|
|
|
|
if (cmd[{"-h", "--help"}]) {
|
|
return;
|
|
}
|
|
|
|
DatabaseUpdate update;
|
|
update.SetDatabase(&database)
|
|
->SetSkipBackup(cmd[{"--skip-backup"}] )
|
|
->SetContentDatabase(&content_db)
|
|
->CheckDbUpdates();
|
|
}
|