Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Petry <vincent@nextcloud.com>2020-12-23 18:17:29 +0300
committerJulius Härtl <jus@bitgrid.net>2021-01-07 11:39:10 +0300
commit9c7d733c0119f0b6e1053e646c2e63a7318e7cc3 (patch)
tree3c337ae7881230a366ccdcde0c737d3426d93ecc /apps/files_sharing/lib
parent9c54467c94465d410c8ca50c69079a45da61aec2 (diff)
Also add missing oc_share_external.share_type column
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Diffstat (limited to 'apps/files_sharing/lib')
-rw-r--r--apps/files_sharing/lib/Migration/Version11300Date20201120141438.php6
-rw-r--r--apps/files_sharing/lib/Migration/Version21000Date20201223143245.php7
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 077c825c0a1..ff616022be4 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;