Skip to content

Commit 60ff84c

Browse files
committed
fix: Only return $schema if there was changes in migration
Signed-off-by: Côme Chilliet <[email protected]>
1 parent d6ed87d commit 60ff84c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lib/Migration/Version19000Date20241029123147.php

+2-4
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,7 @@
1616

1717
class Version19000Date20241029123147 extends SimpleMigrationStep {
1818
/**
19-
* @param IOutput $output
2019
* @param Closure(): ISchemaWrapper $schemaClosure
21-
* @param array $options
22-
* @return null|ISchemaWrapper
2320
*/
2421
public function changeSchema(IOutput $output, Closure $schemaClosure, array $options): ?ISchemaWrapper {
2522
/** @var ISchemaWrapper $schema */
@@ -29,9 +26,10 @@ public function changeSchema(IOutput $output, Closure $schemaClosure, array $opt
2926
$table = $schema->getTable('group_folders');
3027
if (!$table->hasIndex('gf_folders_folder_id')) {
3128
$table->addUniqueIndex(['folder_id'], 'gf_folders_folder_id');
29+
return $schema;
3230
}
3331
}
3432

35-
return $schema;
33+
return null;
3634
}
3735
}

0 commit comments

Comments
 (0)