]> source.dussan.org Git - nextcloud-server.git/commitdiff
Drop oc_dav_job_status table
authorJulius Härtl <jus@bitgrid.net>
Fri, 20 Nov 2020 15:16:31 +0000 (16:16 +0100)
committerJulius Härtl <jus@bitgrid.net>
Mon, 14 Dec 2020 10:12:50 +0000 (11:12 +0100)
Signed-off-by: Julius Härtl <jus@bitgrid.net>
core/Migrations/Version21000Date20201120141228.php [new file with mode: 0644]

diff --git a/core/Migrations/Version21000Date20201120141228.php b/core/Migrations/Version21000Date20201120141228.php
new file mode 100644 (file)
index 0000000..1763bd7
--- /dev/null
@@ -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;
+       }
+}