projects
/
Pman.Xtuple
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
97eba2f
)
UpdateDatabase.php
author
Alan Knowles
<alan@roojs.com>
Fri, 15 Nov 2013 05:47:14 +0000
(13:47 +0800)
committer
Alan Knowles
<alan@roojs.com>
Fri, 15 Nov 2013 05:47:14 +0000
(13:47 +0800)
UpdateDatabase.php
patch
|
blob
|
history
diff --git
a/UpdateDatabase.php
b/UpdateDatabase.php
index
20c2dcb
..
b497360
100644
(file)
--- a/
UpdateDatabase.php
+++ b/
UpdateDatabase.php
@@
-172,11
+172,13
@@
class Pman_Xtuple_UpdateDatabase extends Pman
$core_opts = HTML_FlexyFramework::get()->page->opts;
- if (!empty($core_opts['init'])
&& empty($core_opts['base'])
) {
-
die("init must be used before base!"
);
+ if (!empty($core_opts['init'])) {
+
DB_DataObject::factory('curr_symbol')->setBase($this, $core_opt['base']
);
}
+
+
foreach($tables as $t) {
$cs = DB_DataObject::factory($t);
$cs->initDatabase($this);