From a03ae3b61b2d0791eefa70f247f7aca709d3b59f Mon Sep 17 00:00:00 2001 From: Sergey Chernyshev Date: Sun, 1 Apr 2012 21:48:27 -0400 Subject: [PATCH] Allow to force a version number through a comman line client --- client.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/client.php b/client.php index e01cd04..0ff8a76 100644 --- a/client.php +++ b/client.php @@ -7,6 +7,12 @@ header('Content-type: text/plain'); try { + if (!empty($argc) && count($argv) == 3 && $argv[1] == 'set' && is_numeric($argv[2])) { + echo 'Forcing DB version to v.'.intval($argv[2])."\n"; + $dbupgrade->set_db_version(intval($argv[2])); + exit; + } + if (!empty($argc) && count($argv) == 2 && $argv[1] == 'down') { $dbupgrade->dbdown(); } else {