Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove special handling for 'postgis' schema #114

Merged
merged 2 commits into from
May 13, 2014
Merged

Commits on May 11, 2014

  1. Remove special handling of "postgis" schema

    By default, the PostGIS extension installs PostGIS tables into the
    'public' schema. There is no reason for this adapter to do anything
    special for a 'postgis' schema. PostGIS tables are excluded from the
    structure dump via ignore_tables, not via the schema.
    
    The default postgres #structure_dump method handles multiple schemas
    via 'schema_search_path' in database.yml. If you want install PostGIS
    tables into a non-default schema, add that schema to your
    'schema_search_path' like so:
    
    database.yml:
    schema_search_path: 'public, postgis'
    
    https://github.com/rails/docrails/blob/master/activerecord/lib/active_re
    cord/tasks/postgresql_database_tasks.rb
    
    http://lists.osgeo.org/pipermail/postgis-users/2009-November/025165.html
    teeparham committed May 11, 2014
    Configuration menu
    Copy the full SHA
    c153469 View commit details
    Browse the repository at this point in the history
  2. Remove schema manipulation

    Remove tasks for non-standard schema creation and alteration.
    
    The #setup_gis_grant_privileges and #setup_gis_schemas methods are not
    necessary and possibly insecure.
    teeparham committed May 11, 2014
    Configuration menu
    Copy the full SHA
    d87d912 View commit details
    Browse the repository at this point in the history