From: Alan Knowles Date: Sun, 26 Aug 2018 05:22:33 +0000 (+0800) Subject: sync X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=f6836c4e7d50ebb9e2eda66e7c278d2f930ce1fb sync --- diff --git a/UpdateDatabase.php b/UpdateDatabase.php index d36da498..900c7ecd 100644 --- a/UpdateDatabase.php +++ b/UpdateDatabase.php @@ -152,6 +152,8 @@ class Pman_Core_UpdateDatabase extends Pman $this->checkSystem(); + $this->verifyExtensions(array('curl')); + 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.. + $dbdir = $dbtype == 'mysqli' ? 'mysql' : $dbdir; $this->{$dirmethod}($dburl, $this->rootDir. "/Pman/$m/sql"); - $this->{$dirmethod}($dburl, $this->rootDir. "/Pman/$m/{$dbtype}"); + $this->{$dirmethod}($dburl, $this->rootDir. "/Pman/$m/{$dbdir}");