mirror of
https://github.com/documize/community.git
synced 2025-07-21 14:19:43 +02:00
Ignore PostGIS when determining if PostgreSQL is empty
If the PostGIS extension is installed in PostgreSQL the 'spatial_ref_sys' will automatically have been installed in the public schema. Documize would see this table and incorrectly assume it shouldn't enter setup mode.
This commit is contained in:
parent
8e4ad6422b
commit
89a28ad22f
1 changed files with 1 additions and 1 deletions
|
@ -244,7 +244,7 @@ func (p PostgreSQLProvider) QueryGetDatabaseVersionLegacy() string {
|
||||||
func (p PostgreSQLProvider) QueryTableList() string {
|
func (p PostgreSQLProvider) QueryTableList() string {
|
||||||
return fmt.Sprintf(`select table_name
|
return fmt.Sprintf(`select table_name
|
||||||
FROM information_schema.tables
|
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
|
// QueryDateInterval returns provider specific interval style
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue