Also add missing oc_share_external.share_type column

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
This commit is contained in:
Vincent Petry 2020-12-23 16:17:29 +01:00 committed by Julius Härtl
parent 9c54467c94
commit 9c7d733c01
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
2 changed files with 13 additions and 0 deletions

View File

@ -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');
}

View File

@ -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;