Self patching db_update script for when new versions come out

This commit is contained in:
Akkadius 2014-11-27 00:03:49 -06:00
parent 521106e286
commit f0881d4aa9

View File

@ -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");