aboutsummaryrefslogtreecommitdiffstats
path: root/core/Migrations
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2020-11-20 16:16:31 +0100
committerJulius Härtl <jus@bitgrid.net>2020-12-09 12:13:34 +0100
commitde67719d9fea794d4f219c142cb1d0f1b84ed08d (patch)
tree6cdcdd1345bf1b6041939a3a6c7e5d0229a472b3 /core/Migrations
parentab43d6a11e7210a39ea49bb30b79c1d06b095efc (diff)
downloadnextcloud-server-de67719d9fea794d4f219c142cb1d0f1b84ed08d.tar.gz
nextcloud-server-de67719d9fea794d4f219c142cb1d0f1b84ed08d.zip
Drop oc_dav_job_status table
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'core/Migrations')
-rw-r--r--core/Migrations/Version21000Date20201120141228.php23
1 files changed, 23 insertions, 0 deletions
diff --git a/core/Migrations/Version21000Date20201120141228.php b/core/Migrations/Version21000Date20201120141228.php
new file mode 100644
index 00000000000..1763bd791c5
--- /dev/null
+++ b/core/Migrations/Version21000Date20201120141228.php
@@ -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;
+ }
+}