Skip to content

Commit 86b23ff

Browse files
committed
Change init.sql in user-doc
1 parent 6c90366 commit 86b23ff

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

Documentation/user-doc.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,15 @@ Then, run this command to create the database: `CREATE DATABASE pgrouting;`, and
9595
Now, one can run these queries to create the schemas and extensions needed:
9696

9797
```sql
98-
CREATE SCHEMA osm;
99-
CREATE SCHEMA omf;
100-
CREATE SCHEMA results;
101-
CREATE EXTENSION postgis;
102-
CREATE EXTENSION pgrouting;
98+
CREATE EXTENSION IF NOT EXISTS postgis;
99+
100+
CREATE EXTENSION IF NOT EXISTS pgrouting;
101+
102+
CREATE SCHEMA IF NOT EXISTS osm;
103+
104+
CREATE SCHEMA IF NOT EXISTS omf;
105+
106+
CREATE SCHEMA IF NOT EXISTS results;
103107
```
104108

105109
*Note*: It is sufficient to create the database, as in the [main.py](../Python/Assessment/main.py#L24), these SQL commands are executed (inside the `utils.initialisePostgreSQL(connection)` function).

0 commit comments

Comments
 (0)