mirror of
https://github.com/nextcloud/server.git
synced 2026-04-20 22:00:39 -04:00
Remove unneeded preSchemaChange and return null if no changes
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
9d2536e49e
commit
ddfa2f221e
1 changed files with 2 additions and 10 deletions
|
|
@ -31,15 +31,6 @@ use OCP\Migration\SimpleMigrationStep;
|
|||
|
||||
class Version1016Date20220324154536 extends SimpleMigrationStep {
|
||||
|
||||
/**
|
||||
* @param IOutput $output
|
||||
* @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper`
|
||||
* @param array $options
|
||||
*/
|
||||
public function preSchemaChange(IOutput $output, Closure $schemaClosure, array $options): void {
|
||||
// FIXME do we need to check for 4000+ values?
|
||||
}
|
||||
|
||||
/**
|
||||
* @param IOutput $output
|
||||
* @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper`
|
||||
|
|
@ -55,8 +46,9 @@ class Version1016Date20220324154536 extends SimpleMigrationStep {
|
|||
|
||||
if ($column->getLength() > 4000) {
|
||||
$column->setLength(4000);
|
||||
return $schema;
|
||||
}
|
||||
|
||||
return $schema;
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue