projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
b18616a
)
RunGenerator.php
author
Alan Knowles
<alan@roojs.com>
Thu, 8 Nov 2012 08:21:11 +0000
(16:21 +0800)
committer
Alan Knowles
<alan@roojs.com>
Thu, 8 Nov 2012 08:21:11 +0000
(16:21 +0800)
RunGenerator.php
patch
|
blob
|
history
diff --git
a/RunGenerator.php
b/RunGenerator.php
index
1283107
..
7f3b65d
100644
(file)
--- a/
RunGenerator.php
+++ b/
RunGenerator.php
@@
-31,6
+31,14
@@
class Pman_Core_RunGenerator extends Pman
'min' => 1,
'max' => -1,
+ ),
+ 'noupdate' => array(
+ 'desc' => 'Do not update the database using sql',
+ 'default' => '',
+ 'short' => 'n',
+ 'min' => 1,
+ 'max' => -1,
+
)
);
@@
-57,8
+65,10
@@
class Pman_Core_RunGenerator extends Pman
function get($args, $opts)
{
//print_r($opts);exit;
+ if (empty($opts['n'])) {
+ HTML_FlexyFramework::run('Core/UpdateDatabase');
+ }
- HTML_FlexyFramework::run('Core/UpdateDatabase');