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

github.com/nextcloud/richdocuments.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Migration/Version2060Date20200302132145.php')
-rw-r--r--lib/Migration/Version2060Date20200302132145.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/Migration/Version2060Date20200302132145.php b/lib/Migration/Version2060Date20200302132145.php
index 766dbb14..6663eb63 100644
--- a/lib/Migration/Version2060Date20200302132145.php
+++ b/lib/Migration/Version2060Date20200302132145.php
@@ -24,10 +24,12 @@ class Version2060Date20200302132145 extends SimpleMigrationStep
$schema = $schemaClosure();
$table = $schema->getTable('richdocuments_wopi');
- $table->addColumn('share', 'string', [
- 'notnull' => false,
- 'length' => 64
- ]);
+ if (!$table->hasColumn('share')) {
+ $table->addColumn('share', 'string', [
+ 'notnull' => false,
+ 'length' => 64
+ ]);
+ }
return $schema;
}