diff options
author | Louis Chemineau <louis@chmn.me> | 2024-03-04 12:21:18 +0100 |
---|---|---|
committer | Louis Chemineau <louis@chmn.me> | 2024-03-04 12:21:18 +0100 |
commit | dee1181e3b489bfb6812d059b57b03ac40e10d47 (patch) | |
tree | 4055fd9866f429ff56c42d16e85e3dd8a72ee108 /lib/private/Repair | |
parent | 0045e761fcfd45c77e83fe966694493163c04ff9 (diff) | |
download | nextcloud-server-dee1181e3b489bfb6812d059b57b03ac40e10d47.tar.gz nextcloud-server-dee1181e3b489bfb6812d059b57b03ac40e10d47.zip |
Use table prefix in metadata migration
Signed-off-by: Louis Chemineau <louis@chmn.me>
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; |