Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2021-03-08 11:58:32 +0300
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2021-03-16 16:37:58 +0300
commit813fd892f9c19090b9abeb324dfd14f0cbc70745 (patch)
tree29a2ee585162c6a1c7ebca2e87e7c6f04c372a7d /lib
parent25e7673c52b90fd07ec3483499adb321d4f79296 (diff)
Fix the background job checking the schema
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/BackgroundJob/CheckReferenceIdColumn.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/BackgroundJob/CheckReferenceIdColumn.php b/lib/BackgroundJob/CheckReferenceIdColumn.php
index 8badcdaf5..36cfc07ec 100644
--- a/lib/BackgroundJob/CheckReferenceIdColumn.php
+++ b/lib/BackgroundJob/CheckReferenceIdColumn.php
@@ -23,6 +23,7 @@ declare(strict_types=1);
namespace OCA\Talk\BackgroundJob;
+use OC\DB\ConnectionAdapter;
use OC\DB\SchemaWrapper;
use OCP\AppFramework\Utility\ITimeFactory;
use OCP\BackgroundJob\IJobList;
@@ -41,7 +42,7 @@ class CheckReferenceIdColumn extends TimedJob {
protected $jobList;
/** @var IConfig */
protected $serverConfig;
- /** @var IDBConnection */
+ /** @var IDBConnection|ConnectionAdapter */
protected $connection;
public function __construct(ITimeFactory $timeFactory,
@@ -56,7 +57,7 @@ class CheckReferenceIdColumn extends TimedJob {
}
protected function run($argument): void {
- $schema = new SchemaWrapper($this->connection);
+ $schema = new SchemaWrapper($this->connection->getInner());
if ($schema->hasTable('comments')) {
$table = $schema->getTable('comments');
if ($table->hasColumn('reference_id')) {