소스 검색

check database types

develop
Robin Thoni 8 년 전
부모
커밋
41200979d9
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5
    1
      src/Utils/Controller/LuticateApplication.php

+ 5
- 1
src/Utils/Controller/LuticateApplication.php 파일 보기

@@ -101,7 +101,11 @@ class LuticateApplication implements MessageComponentInterface
101 101
                 'collation' => 'utf8_unicode_ci',
102 102
                 'prefix'    => ''
103 103
             ];
104
-            $capsule->addConnection(array_merge($default, $database), $database['name']);
104
+            $db = array_merge($default, $database);
105
+            if ($db['driver'] == 'pgsql' || $db['driver'] == 'mysql' ||
106
+                $db['driver'] == 'sqlite' || $db['driver'] == 'sqlsrv') {
107
+                $capsule->addConnection($db, $database['name']);
108
+            }
105 109
         }
106 110
         $capsule->setAsGlobal();
107 111
     }

Loading…
취소
저장