UpdateDatabase.php
authorAlan Knowles <alan@roojs.com>
Mon, 27 Aug 2018 06:24:26 +0000 (14:24 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 27 Aug 2018 06:24:26 +0000 (14:24 +0800)
UpdateDatabase.php

index 900c7ec..c54a4d1 100644 (file)
@@ -305,7 +305,7 @@ 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;
+            $dbdir = $dbtype == 'mysqli' ? 'mysql' : $dbtype;
             
             $this->{$dirmethod}($dburl, $this->rootDir. "/Pman/$m/sql");
             $this->{$dirmethod}($dburl, $this->rootDir. "/Pman/$m/{$dbdir}");