mirror of
https://github.com/nextcloud/server.git
synced 2026-04-21 22:27:31 -04:00
add default for dbtableprefix
This commit is contained in:
parent
6fd1a9563e
commit
95374e1404
4 changed files with 5 additions and 5 deletions
|
|
@ -229,7 +229,7 @@ class ConvertType extends Command {
|
|||
|
||||
protected function getTables(Connection $db) {
|
||||
$db->getConfiguration()->
|
||||
setFilterSchemaAssetsExpression('/^'.$this->config->getSystemValue('dbtableprefix').'/');
|
||||
setFilterSchemaAssetsExpression('/^'.$this->config->getSystemValue('dbtableprefix', 'oc_').'/');
|
||||
return $db->getSchemaManager()->listTableNames();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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'));
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue