From f0881d4aa98c8db15eb407c1acc19c68f16421d3 Mon Sep 17 00:00:00 2001 From: Akkadius Date: Thu, 27 Nov 2014 00:03:49 -0600 Subject: [PATCH] Self patching db_update script for when new versions come out --- common/database.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/common/database.cpp b/common/database.cpp index 82931e457..ecf83dc57 100644 --- a/common/database.cpp +++ b/common/database.cpp @@ -910,6 +910,19 @@ bool Database::CheckDatabaseConversions() { #endif } + /* + Automatic Database Upgrade Script + Script: db_updater.pl V 1 - the number that world passes to the script will + force the script to check for a newer version to update itself with + db_updater.pl ran_from_world - won't bring up a menu if your database versions match + db_updater.pl - ran standalone will bring up a menu prompt + */ + + /* Check for a new version of this script, the arg passed + would have to be higher than the copy they have downloaded + locally and they will re fetch */ + system("perl db_update.pl V 1"); + /* Run Automatic Database Upgrade Script */ system("perl db_update.pl ran_from_world");