Skip to content

Commit f6777af

Browse files
[10.x] Exclude extension types on PostgreSQL when retrieving types (#49358)
* exclude extension types * also exclude implicit extension types
1 parent 94634fe commit f6777af

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Illuminate/Database/Schema/Grammars/PostgresGrammar.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ public function compileTypes()
115115
.'left join pg_type el on el.oid = t.typelem '
116116
.'left join pg_class ce on ce.oid = el.typrelid '
117117
."where ((t.typrelid = 0 and (ce.relkind = 'c' or ce.relkind is null)) or c.relkind = 'c') "
118+
."and not exists (select 1 from pg_depend d where d.objid in (t.oid, t.typelem) and d.deptype = 'e') "
118119
."and n.nspname not in ('pg_catalog', 'information_schema')";
119120
}
120121

0 commit comments

Comments
 (0)