Skip to content

Commit a2447f3

Browse files
chore: add engine to CRL table
Necessary to identify what's the engine that was used. Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent 6109317 commit a2447f3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/Migration/Version13000Date20251031165700.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,13 @@ public function changeSchema(IOutput $output, Closure $schemaClosure, array $opt
4545
$engine->setConfigPath($engine->getConfigPath());
4646
}
4747
}
48+
49+
if ($schema->hasTable('libresign_crl')) {
50+
$crlTable = $schema->getTable('libresign_crl');
51+
if (!$crlTable->hasColumn('engine')) {
52+
$crlTable->addColumn('engine', 'string', ['default' => $engineName]);
53+
}
54+
}
4855
return $schema;
4956
}
5057
}

0 commit comments

Comments
 (0)