[CLI] Add --skip-backup to world database:updates (#4605)

This commit is contained in:
Chris Miles
2025-01-21 19:11:58 -06:00
committed by GitHub
parent 90c37390f1
commit 0acad18067
4 changed files with 21 additions and 3 deletions
+5
View File
@@ -4,12 +4,17 @@ void WorldserverCLI::DatabaseUpdates(int argc, char **argv, argh::parser &cmd, s
{
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();
}