mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-11 21:01:29 +00:00
21 lines
475 B
C++
21 lines
475 B
C++
#include "../../common/database/database_update.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();
|
|
}
|