Skip to content

Commit 33d863f

Browse files
committed
refactor(migration): remove unreachable schema guards
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent 52327b4 commit 33d863f

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

lib/Migration/Version1001Date20260404010000.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,7 @@ class Version1001Date20260404010000 extends SimpleMigrationStep {
2424
public function changeSchema(IOutput $output, Closure $schemaClosure, array $options): ?ISchemaWrapper {
2525
/** @var ISchemaWrapper $schema */
2626
$schema = $schemaClosure();
27-
28-
if (!$schema->hasTable('profile_fields_definitions')) {
29-
return null;
30-
}
31-
3227
$table = $schema->getTable('profile_fields_definitions');
33-
if (!$table->hasColumn('active')) {
34-
return null;
35-
}
3628

3729
$activeColumn = $table->getColumn('active');
3830
if (!$activeColumn->getNotnull()) {

0 commit comments

Comments
 (0)