diff options
author | Morris Jobke <hey@morrisjobke.de> | 2014-12-23 13:32:25 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2014-12-23 13:32:25 +0100 |
commit | 95374e1404e6342dcd34d40bcb4d8acb197bf831 (patch) | |
tree | 49cf960a5dc48dd0b47abc3f61fede28d192e682 /lib/private/db/migrator.php | |
parent | 6fd1a9563e335290b3258f9d19863519e3fa44bf (diff) | |
download | nextcloud-server-95374e1404e6342dcd34d40bcb4d8acb197bf831.tar.gz nextcloud-server-95374e1404e6342dcd34d40bcb4d8acb197bf831.zip |
add default for dbtableprefix
Diffstat (limited to 'lib/private/db/migrator.php')
-rw-r--r-- | lib/private/db/migrator.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/db/migrator.php b/lib/private/db/migrator.php index aecbcf418d3..8ccc02e36a5 100644 --- a/lib/private/db/migrator.php +++ b/lib/private/db/migrator.php @@ -77,7 +77,7 @@ class Migrator { $tables = $targetSchema->getTables(); $this->connection->getConfiguration()-> - setFilterSchemaAssetsExpression('/^' . $this->config->getSystemValue('dbtableprefix') . '/'); + setFilterSchemaAssetsExpression('/^' . $this->config->getSystemValue('dbtableprefix', 'oc_') . '/'); $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('/^' . $this->config->getSystemValue('dbtableprefix') . '/'); + setFilterSchemaAssetsExpression('/^' . $this->config->getSystemValue('dbtableprefix', 'oc_') . '/'); $sourceSchema = $connection->getSchemaManager()->createSchema(); // remove tables we don't know about |