1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-23 15:19:42 +02:00

Merge pull request #250 from siepkes/postgresql_postgis_fix

Ignore PostGIS when determining if PostgreSQL is empty
This commit is contained in:
Harvey Kandola 2019-04-23 16:30:51 +01:00 committed by GitHub
commit e6e3ed71ac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -244,7 +244,7 @@ func (p PostgreSQLProvider) QueryGetDatabaseVersionLegacy() string {
func (p PostgreSQLProvider) QueryTableList() string {
return fmt.Sprintf(`select table_name
FROM information_schema.tables
WHERE table_type='BASE TABLE' AND table_schema NOT IN ('pg_catalog', 'information_schema') AND table_catalog='%s'`, p.DatabaseName())
WHERE table_type='BASE TABLE' AND table_schema NOT IN ('pg_catalog', 'information_schema') AND table_name != 'spatial_ref_sys' AND table_catalog='%s'`, p.DatabaseName())
}
// QueryDateInterval returns provider specific interval style