Commit fd75cdfd authored by Guilherme Blanco's avatar Guilherme Blanco

Merge pull request #79 from jsor/spatial_tables

Exclude spatial extension tables
parents dd967b1e d6678950
...@@ -194,7 +194,7 @@ class PostgreSqlPlatform extends AbstractPlatform ...@@ -194,7 +194,7 @@ class PostgreSqlPlatform extends AbstractPlatform
public function getListTablesSQL() public function getListTablesSQL()
{ {
return "SELECT tablename AS table_name, schemaname AS schema_name return "SELECT tablename AS table_name, schemaname AS schema_name
FROM pg_tables WHERE schemaname NOT LIKE 'pg_%' AND schemaname != 'information_schema'"; FROM pg_tables WHERE schemaname NOT LIKE 'pg_%' AND schemaname != 'information_schema' AND tablename != 'geometry_columns' AND tablename != 'spatial_ref_sys'";
} }
public function getListViewsSQL($database) public function getListViewsSQL($database)
......
...@@ -357,7 +357,7 @@ class SqlitePlatform extends AbstractPlatform ...@@ -357,7 +357,7 @@ class SqlitePlatform extends AbstractPlatform
public function getListTablesSQL() public function getListTablesSQL()
{ {
return "SELECT name FROM sqlite_master WHERE type = 'table' AND name != 'sqlite_sequence' " return "SELECT name FROM sqlite_master WHERE type = 'table' AND name != 'sqlite_sequence' AND name != 'geometry_columns' AND name != 'spatial_ref_sys' "
. "UNION ALL SELECT name FROM sqlite_temp_master " . "UNION ALL SELECT name FROM sqlite_temp_master "
. "WHERE type = 'table' ORDER BY name"; . "WHERE type = 'table' ORDER BY name";
} }
......
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