diff --git a/src/Meta/Postgres/Schema.php b/src/Meta/Postgres/Schema.php index be986c69..407ee250 100644 --- a/src/Meta/Postgres/Schema.php +++ b/src/Meta/Postgres/Schema.php @@ -200,7 +200,7 @@ protected function fillPrimaryKey($relations, Blueprint $blueprint) protected function fillIndexes($indexes, Blueprint $blueprint) { foreach ($indexes as $row) { - $pattern = '/\s*(UNIQUE)?\s*(KEY|INDEX)\s+(\w+)\s+\(([^\)]+)\)/mi'; + $pattern = '/\s*(UNIQUE)?\s*(KEY|INDEX)\s+(\w+)\s+.*?\(([^\)]+)\)/mi'; if (preg_match($pattern, $row['indexdef'], $setup) == false) { continue; }