Skip to content

Commit

Permalink
fix: move to correct place
Browse files Browse the repository at this point in the history
  • Loading branch information
dudantas committed Nov 7, 2024
1 parent d56313b commit 420711b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/canary_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -308,8 +308,6 @@ void CanaryServer::initializeDatabase() {
}
logger.debug("MySQL Version: {}", Database::getClientVersion());

g_database().createDatabaseBackup();

logger.debug("Running database manager...");
if (!DatabaseManager::isDatabaseSetup()) {
throw FailedToInitializeCanary(fmt::format(
Expand All @@ -318,6 +316,8 @@ void CanaryServer::initializeDatabase() {
));
}

g_database().createDatabaseBackup();

DatabaseManager::updateDatabase();

if (g_configManager().getBoolean(OPTIMIZE_DATABASE)
Expand Down

0 comments on commit 420711b

Please sign in to comment.