diff options
Diffstat (limited to 'lib/private/Repair')
-rw-r--r-- | lib/private/Repair/AddMetadataMigrationJob.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/private/Repair/AddMetadataMigrationJob.php b/lib/private/Repair/AddMetadataMigrationJob.php index 7bc3573a1a2..51a5c827ee8 100644 --- a/lib/private/Repair/AddMetadataMigrationJob.php +++ b/lib/private/Repair/AddMetadataMigrationJob.php @@ -24,6 +24,7 @@ namespace OC\Repair; use OC\Core\BackgroundJobs\MetadataMigrationJob; use OCP\BackgroundJob\IJobList; +use OCP\IConfig; use OCP\IDBConnection; use OCP\Migration\IOutput; use OCP\Migration\IRepairStep; @@ -32,6 +33,7 @@ class AddMetadataMigrationJob implements IRepairStep { public function __construct( private IJobList $jobList, private IDBConnection $db, + private IConfig $config, ) { } @@ -41,7 +43,9 @@ class AddMetadataMigrationJob implements IRepairStep { public function run(IOutput $output) { $schema = $this->db->createSchema(); - $metadataTable = $schema->getTable('oc_file_metadata'); + + $prefix = $this->config->getSystemValueString('dbtableprefix', 'oc_'); + $metadataTable = $schema->getTable($prefix.'file_metadata'); if (!$metadataTable->hasColumn('metadata')) { return; |