diff options
author | Vincent Petry <vincent@nextcloud.com> | 2020-12-23 18:17:29 +0300 |
---|---|---|
committer | Vincent Petry <vincent@nextcloud.com> | 2020-12-23 18:20:01 +0300 |
commit | 6c0de14b4c49430896c53a025ae912ca73cb0f60 (patch) | |
tree | 704d3c59ccaee883e5098af2f9c422082f385608 /apps/files_sharing | |
parent | 07bf663f4c9e361d19482dfe01643c47b8dd6eb7 (diff) |
Also add missing oc_share_external.share_type column
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Diffstat (limited to 'apps/files_sharing')
-rw-r--r-- | apps/files_sharing/lib/Migration/Version11300Date20201120141438.php | 6 | ||||
-rw-r--r-- | apps/files_sharing/lib/Migration/Version21000Date20201223143245.php | 7 |
2 files changed, 13 insertions, 0 deletions
diff --git a/apps/files_sharing/lib/Migration/Version11300Date20201120141438.php b/apps/files_sharing/lib/Migration/Version11300Date20201120141438.php index 56f9f97fbd7..8094feaef50 100644 --- a/apps/files_sharing/lib/Migration/Version11300Date20201120141438.php +++ b/apps/files_sharing/lib/Migration/Version11300Date20201120141438.php @@ -122,6 +122,12 @@ class Version11300Date20201120141438 extends SimpleMigrationStep { '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 3e9fda47c46..5dfdb09f1ec 100644 --- a/apps/files_sharing/lib/Migration/Version21000Date20201223143245.php +++ b/apps/files_sharing/lib/Migration/Version21000Date20201223143245.php @@ -48,6 +48,13 @@ class Version21000Date20201223143245 extends SimpleMigrationStep { ]); $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; |