projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e1670f2
)
UpdateDatabase.php
author
Alan Knowles
<alan@roojs.com>
Tue, 19 Nov 2013 08:06:28 +0000
(16:06 +0800)
committer
Alan Knowles
<alan@roojs.com>
Tue, 19 Nov 2013 08:06:28 +0000
(16:06 +0800)
UpdateDatabase.php
patch
|
blob
|
history
diff --git
a/UpdateDatabase.php
b/UpdateDatabase.php
index
a4c17e6
..
f17bb93
100644
(file)
--- a/
UpdateDatabase.php
+++ b/
UpdateDatabase.php
@@
-33,7
+33,7
@@
class Pman_Core_UpdateDatabase extends Pman
'min' => 1,
'max' => 1,
- )
+ )
,
'add-company' => array(
'desc' => 'add a company name of the company',
'short' => 'n',
@@
-133,8
+133,9
@@
class Pman_Core_UpdateDatabase extends Pman
DB_DataObject::factory('companies')->initCompanies($this, $opts);
}
-
- $this->importSQL();
+ if (empty($opts['data-only'])) {
+ $this->importSQL();
+ }
if (!empty($opts['only-module-sql'])) {
return;
}