- fix db revision

This commit is contained in:
David Anderson 2012-10-24 15:06:50 -07:00 committed by Oliver Bock
parent 02e70da914
commit 9df3e3df95
1 changed files with 2 additions and 6 deletions

8
html/ops/db_schemaversion.php Normal file → Executable file
View File

@ -17,10 +17,6 @@
// You should have received a copy of the GNU Lesser General Public License
// along with BOINC. If not, see <http://www.gnu.org/licenses/>.
// Perform DB updates.
// Used by "upgrade".
// Can also be run manually in project/html/ops.
require_once("../inc/util_ops.inc");
$db_revision = 0;
@ -30,12 +26,12 @@ if (file_exists("../../db_revision")) {
require_once("db_update.php");
$updates = array();
foreach($db_updates as $db_update) {
foreach ($db_updates as $db_update) {
if ($db_update[0] > $db_revision) {
$db_revision = $db_update[0];
}
}
echo "\n$db_version\n";
echo "$db_revision\n";
?>