Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
11 | public static function prepareEnvironment(ConnectionManagement $connection) |
||
12 | { |
||
13 | $database = $connection->getDatabase(); |
||
14 | |||
15 | $newConnection = new ConnectionManagement(str_replace("/$database", "/", $connection->getDbConnectionString())); |
||
16 | $dbDataset = new DBDataset($newConnection->getDbConnectionString()); |
||
17 | $dbDataset->execSQL("CREATE SCHEMA IF NOT EXISTS `$database` DEFAULT CHARACTER SET utf8 ;"); |
||
18 | } |
||
19 | |||
46 |