summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2014-12-23 13:32:25 +0100
committerMorris Jobke <hey@morrisjobke.de>2014-12-23 13:32:25 +0100
commit95374e1404e6342dcd34d40bcb4d8acb197bf831 (patch)
tree49cf960a5dc48dd0b47abc3f61fede28d192e682 /lib
parent6fd1a9563e335290b3258f9d19863519e3fa44bf (diff)
downloadnextcloud-server-95374e1404e6342dcd34d40bcb4d8acb197bf831.tar.gz
nextcloud-server-95374e1404e6342dcd34d40bcb4d8acb197bf831.zip
add default for dbtableprefix
Diffstat (limited to 'lib')
-rw-r--r--lib/private/db/mdb2schemawriter.php2
-rw-r--r--lib/private/db/migrator.php4
-rw-r--r--lib/private/db/pgsqltools.php2
3 files changed, 4 insertions, 4 deletions
diff --git a/lib/private/db/mdb2schemawriter.php b/lib/private/db/mdb2schemawriter.php
index aa6d578e9b5..a42cd86ba54 100644
--- a/lib/private/db/mdb2schemawriter.php
+++ b/lib/private/db/mdb2schemawriter.php
@@ -23,7 +23,7 @@ class OC_DB_MDB2SchemaWriter {
$xml->addChild('charset', 'utf8');
$conn->getConfiguration()->
- setFilterSchemaAssetsExpression('/^' . $config->getSystemValue('dbtableprefix') . '/');
+ setFilterSchemaAssetsExpression('/^' . $config->getSystemValue('dbtableprefix', 'oc_') . '/');
foreach ($conn->getSchemaManager()->listTables() as $table) {
self::saveTable($table, $xml->addChild('table'));
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
diff --git a/lib/private/db/pgsqltools.php b/lib/private/db/pgsqltools.php
index 3896009add4..f3204d4c7b6 100644
--- a/lib/private/db/pgsqltools.php
+++ b/lib/private/db/pgsqltools.php
@@ -34,7 +34,7 @@ class PgSqlTools {
public function resynchronizeDatabaseSequences(Connection $conn) {
$databaseName = $conn->getDatabase();
$conn->getConfiguration()->
- setFilterSchemaAssetsExpression('/^' . $this->config->getSystemValue('dbtableprefix') . '/');
+ setFilterSchemaAssetsExpression('/^' . $this->config->getSystemValue('dbtableprefix', 'oc_') . '/');
foreach ($conn->getSchemaManager()->listSequences() as $sequence) {
$sequenceName = $sequence->getName();