Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
11 | public function changeSchema(Schema $schema, array $options) { |
||
12 | $prefix = $options['tablePrefix']; |
||
13 | if ($schema->hasTable("{$prefix}activity")) { |
||
14 | return; |
||
15 | } |
||
16 | $schemaReader = new MDB2SchemaReader(\OC::$server->getConfig(), \OC::$server->getDatabaseConnection()->getDatabasePlatform()); |
||
17 | $schemaReader->loadSchemaFromFile(__DIR__ . '/../database.xml', $schema); |
||
18 | } |
||
19 | |||
21 |