fix #85 update readme about custom SQL file

pull/88/head
Etienne Trimaille 2019-10-10 14:26:43 +02:00 zatwierdzone przez Étienne Trimaille
rodzic e29ce8c08b
commit 49b329e55e
2 zmienionych plików z 5 dodań i 4 usunięć

Wyświetl plik

@ -155,7 +155,7 @@ class Importer(object):
self.info('Mapping: ' + self.osm_file)
if not self.post_import_file:
self.info('No custom SQL files *.sql detected in %s' % self.default['SETTINGS'])
self.info('No custom SQL files post-pbf-import.sql detected in %s' % self.default['SETTINGS'])
else:
self.info('SQL Post Import: ' + self.post_import_file)

Wyświetl plik

@ -104,10 +104,11 @@ make remove_styles
make backup_styles
```
### SQL Trigger
### SQL Trigger, functions, views...
You can add PostGIS functions, triggers, materialized views in the clip SQL file. You need to run
`make import_sql` to run the clip SQL file
You can add PostGIS functions, triggers, materialized views in a
SQL file called `post-pbf-import.sql`.
It will be imported automatically in the database.
### Build and run