From cb874bc42d8de884284ee1d11af93224b8167c1e Mon Sep 17 00:00:00 2001 From: Tigrov Date: Tue, 16 Jan 2024 16:41:29 +0700 Subject: [PATCH] Fix test issues --- src/Schema.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Schema.php b/src/Schema.php index b8b1e6d1..931b2f46 100644 --- a/src/Schema.php +++ b/src/Schema.php @@ -765,7 +765,9 @@ private function findComments(TableSchemaInterface $tableSchema): void { $sql = $tableSchema->getCreateSql(); - preg_match('#^(?:[^(]*--[^\n]*|[^(]*/\*.*?\*/)*[^(]*\((.*)\)[^)]*$#s', $sql, $matches); + if (!preg_match('#^(?:[^(]*--[^\n]*|[^(]*/\*.*?\*/)*[^(]*\((.*)\)[^)]*$#s', $sql, $matches)) { + return; + } $columnsDefinition = $matches[1];