summaryrefslogtreecommitdiffstats
path: root/core/command/db
diff options
context:
space:
mode:
authortbelau666 <thomas.belau@gmx.de>2014-11-30 23:17:09 +0100
committerMorris Jobke <hey@morrisjobke.de>2014-12-22 10:45:32 +0100
commitad8d55c3274e81dd4fd92b41ac5d6ef5c39febf3 (patch)
tree02d1ebe0f029d0bfa0371b9961e2a47988c719ba /core/command/db
parent5d296aa6b1fca69cfa14cc29eeb5f757a4b7dfad (diff)
downloadnextcloud-server-ad8d55c3274e81dd4fd92b41ac5d6ef5c39febf3.tar.gz
nextcloud-server-ad8d55c3274e81dd4fd92b41ac5d6ef5c39febf3.zip
Use Doctrines filter by table name
Doctrine's SchemaManager can filter table names by regular expression. On this way it picks up only ownClouds's tables in a database. by tbelau666
Diffstat (limited to 'core/command/db')
-rw-r--r--core/command/db/converttype.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/command/db/converttype.php b/core/command/db/converttype.php
index 617910b3a90..92ca9e41ebe 100644
--- a/core/command/db/converttype.php
+++ b/core/command/db/converttype.php
@@ -228,6 +228,8 @@ class ConvertType extends Command {
}
protected function getTables(Connection $db) {
+ $db->getConfiguration()->
+ setFilterSchemaAssetsExpression('/^'.$this->config->getSystemValue('dbtableprefix').'/');
return $db->getSchemaManager()->listTableNames();
}