diff --git a/apps/files_sharing/lib/Migration/Version11300Date20201120141438.php b/apps/files_sharing/lib/Migration/Version11300Date20201120141438.php index 56f9f97fbd73a..8094feaef507a 100644 --- a/apps/files_sharing/lib/Migration/Version11300Date20201120141438.php +++ b/apps/files_sharing/lib/Migration/Version11300Date20201120141438.php @@ -122,6 +122,12 @@ public function changeSchema(IOutput $output, Closure $schemaClosure, array $opt 'default' => -1, ]); } + if (!$table->hasColumn('share_type')) { + $table->addColumn('share_type', Types::INTEGER, [ + 'notnull' => false, + 'length' => 4, + ]); + } if ($table->hasColumn('lastscan')) { $table->dropColumn('lastscan'); } diff --git a/apps/files_sharing/lib/Migration/Version21000Date20201223143245.php b/apps/files_sharing/lib/Migration/Version21000Date20201223143245.php index 3e9fda47c468a..5dfdb09f1ecb7 100644 --- a/apps/files_sharing/lib/Migration/Version21000Date20201223143245.php +++ b/apps/files_sharing/lib/Migration/Version21000Date20201223143245.php @@ -48,6 +48,13 @@ public function changeSchema(IOutput $output, Closure $schemaClosure, array $opt ]); $changed = true; } + if (!$table->hasColumn('share_type')) { + $table->addColumn('share_type', Types::INTEGER, [ + 'notnull' => false, + 'length' => 4, + ]); + $changed = true; + } if ($table->hasColumn('lastscan')) { $table->dropColumn('lastscan'); $changed = true;