Commit de52ae53 authored by Jan Sorgalla's avatar Jan Sorgalla

Exclude tables with table_type of VIEW

This excludes views registered by PostGIS 2.x like geography_columns, geometry_columns, raster_columns and raster_overviews.
The table_name != 'geometry_columns' is kept for PostGIS 1.5 compatibility. The type changed to VIEW in PostGIS 2.0.
parent a2e87c57
......@@ -264,7 +264,8 @@ class PostgreSqlPlatform extends AbstractPlatform
WHERE table_schema NOT LIKE 'pg_%'
AND table_schema != 'information_schema'
AND table_name != 'geometry_columns'
AND table_name != 'spatial_ref_sys'";
AND table_name != 'spatial_ref_sys'
AND table_type != 'VIEW'";
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment