From ddfa2f221ec454447f607c5b0fd3034b5f5a2d85 Mon Sep 17 00:00:00 2001 From: Côme Chilliet Date: Thu, 31 Mar 2022 10:19:48 +0200 Subject: Remove unneeded preSchemaChange and return null if no changes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Côme Chilliet --- .../lib/Migration/Version1016Date20220324154536.php | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'apps') diff --git a/apps/files_external/lib/Migration/Version1016Date20220324154536.php b/apps/files_external/lib/Migration/Version1016Date20220324154536.php index 0f3b5522094..a2a7ecaff17 100644 --- a/apps/files_external/lib/Migration/Version1016Date20220324154536.php +++ b/apps/files_external/lib/Migration/Version1016Date20220324154536.php @@ -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; } } -- cgit v1.2.3