projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
56126fb
)
sync
author
Alan Knowles
<alan@roojs.com>
Sun, 26 Aug 2018 05:22:33 +0000
(13:22 +0800)
committer
Alan Knowles
<alan@roojs.com>
Sun, 26 Aug 2018 05:22:33 +0000
(13:22 +0800)
UpdateDatabase.php
patch
|
blob
|
history
diff --git
a/UpdateDatabase.php
b/UpdateDatabase.php
index
d36da49
..
900c7ec
100644
(file)
--- a/
UpdateDatabase.php
+++ b/
UpdateDatabase.php
@@
-152,6
+152,8
@@
class Pman_Core_UpdateDatabase extends Pman
$this->checkSystem();
$this->checkSystem();
+ $this->verifyExtensions(array('curl'));
+
if (class_exists('PDO_DataObjects_Introspection')) {
PDO_DataObject_Introspection::$cache = array();
}
if (class_exists('PDO_DataObjects_Introspection')) {
PDO_DataObject_Introspection::$cache = array();
}
@@
-303,9
+305,10
@@
class Pman_Core_UpdateDatabase extends Pman
// new -- sql directory..
// new style will not support migrate ... they have to go into mysql-migrate.... directories..
// new style will not support pg.sql etc.. naming - that's what the direcotries are for..
// new -- sql directory..
// new style will not support migrate ... they have to go into mysql-migrate.... directories..
// new style will not support pg.sql etc.. naming - that's what the direcotries are for..
+ $dbdir = $dbtype == 'mysqli' ? 'mysql' : $dbdir;
$this->{$dirmethod}($dburl, $this->rootDir. "/Pman/$m/sql");
$this->{$dirmethod}($dburl, $this->rootDir. "/Pman/$m/sql");
- $this->{$dirmethod}($dburl, $this->rootDir. "/Pman/$m/{$db
type
}");
+ $this->{$dirmethod}($dburl, $this->rootDir. "/Pman/$m/{$db
dir
}");