Permalink
Browse files

Allow to force a version number through a comman line client

  • Loading branch information...
sergeychernyshev committed Apr 2, 2012
1 parent f775df2 commit a03ae3b61b2d0791eefa70f247f7aca709d3b59f
Showing with 6 additions and 0 deletions.
  1. +6 −0 client.php
View
@@ -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 {

0 comments on commit a03ae3b

Please sign in to comment.