From 2ae26455ded1940b8a46e0e803c26ff028965afb Mon Sep 17 00:00:00 2001 From: Justin Langley Date: Tue, 17 Mar 2026 12:33:29 -0500 Subject: [PATCH] Fixing issue with resolving indexes for Postgres. --- src/Meta/Postgres/Schema.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }