Skip to content

Commit

Permalink
Drop oc_dav_job_status table
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Härtl <jus@bitgrid.net>
  • Loading branch information
juliusknorr committed Nov 20, 2020
1 parent 762894d commit 4425bf7
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions core/Migrations/Version21000Date20201120141228.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?php

declare(strict_types=1);

namespace OC\Core\Migrations;

use Closure;
use OCP\DB\ISchemaWrapper;
use OCP\Migration\IOutput;
use OCP\Migration\SimpleMigrationStep;

class Version21000Date20201120141228 extends SimpleMigrationStep {
public function changeSchema(IOutput $output, Closure $schemaClosure, array $options): ?ISchemaWrapper {
/** @var ISchemaWrapper $schema */
$schema = $schemaClosure();

if ($schema->hasTable('dav_job_status')) {
$schema->dropTable('dav_job_status');
}

return $schema;
}
}

0 comments on commit 4425bf7

Please sign in to comment.