Also add missing oc_share_external.share_type column
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
This commit is contained in:
parent
9c54467c94
commit
9c7d733c01
|
@ -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');
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue