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