diff options
author | Morris Jobke <hey@morrisjobke.de> | 2014-12-22 10:44:30 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2014-12-22 10:55:52 +0100 |
commit | dbc465de973660ec0530967cd3ae54aeacab70ee (patch) | |
tree | 845018a6194d74d3eaa6fa7dee89d17a864f6c7b /lib/private/db/migrator.php | |
parent | de25084defa361e6d85af1d469b4b59e8a69c694 (diff) | |
download | nextcloud-server-dbc465de973660ec0530967cd3ae54aeacab70ee.tar.gz nextcloud-server-dbc465de973660ec0530967cd3ae54aeacab70ee.zip |
use injected config object and fix typos
Diffstat (limited to 'lib/private/db/migrator.php')
-rw-r--r-- | lib/private/db/migrator.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/private/db/migrator.php b/lib/private/db/migrator.php index 3a178f387ed..aecbcf418d3 100644 --- a/lib/private/db/migrator.php +++ b/lib/private/db/migrator.php @@ -75,9 +75,9 @@ class Migrator { * @var \Doctrine\DBAL\Schema\Table[] $tables */ $tables = $targetSchema->getTables(); - + $this->connection->getConfiguration()-> - setFilterSchemaAssetsExpression('/^'.\OCP\Config::getSystemValue('dbtableprefix').'/'); + setFilterSchemaAssetsExpression('/^' . $this->config->getSystemValue('dbtableprefix') . '/'); $existingTables = $this->connection->getSchemaManager()->listTableNames(); foreach ($tables as $table) { @@ -162,7 +162,7 @@ class Migrator { protected function getDiff(Schema $targetSchema, \Doctrine\DBAL\Connection $connection) { $connection->getConfiguration()-> - setFilterSchemaAssetsExpression('/^'.\OCP\Config::getSystemValue('dbtableprefix').'/'); + setFilterSchemaAssetsExpression('/^' . $this->config->getSystemValue('dbtableprefix') . '/'); $sourceSchema = $connection->getSchemaManager()->createSchema(); // remove tables we don't know about |