Skip to content

Commit 82ad663

Browse files
authoredMar 4, 2025··
Merge pull request #527 from cymed/improve_docs
Update initialisation docs
2 parents 86fc58f + d7bc4d3 commit 82ad663

File tree

2 files changed

+5
-21
lines changed

2 files changed

+5
-21
lines changed
 

‎docs/en/index.rst

-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ Contents
2525
user-guide/index
2626
admin-guide/index
2727
extensions-guide/index
28-
wincan2tww/index
2928
tww_swmm/index
3029
translation/index
3130

‎docs/en/installation-guide/database-initialization.rst

+5-20
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ Create minimal roles and access
2626
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2727

2828
TWW roles are defined in the
29-
+ `12_0_roles.sql <https://github.com/TWW/datamodel/blob/master/12_0_roles.sql>`_ (per cluster)
30-
+ `12_1_roles.sql <https://github.com/TWW/datamodel/blob/master/12_1_roles.sql>`_ (per database)
29+
+ `12_0_roles.sql <https://github.com/teksi/wastewater/tree/main/datamodel/12_0_roles.sql>`_ (per cluster)
30+
+ `12_1_roles.sql <https://github.com/teksi/wastewater/tree/main/datamodel/12_1_roles.sql>`_ (per database)
3131

3232
`12_0_roles.sql` has to be run before restoring the demodata database.
3333
`12_1_roles.sql` has to be run if you initialize your module with with the commandline.
@@ -134,24 +134,9 @@ You also have the option to restore the latest empty data model (no demo data).
134134
createdb -U postgres -p %port% %db%
135135

136136
psql -U postgres -h localhost -p %port% -d %db% -f %filename%
137-
psql -U postgres -h localhost -p %port% -d %db% -c "GRANT USAGE ON SCHEMA public TO ""tww"""
138-
psql -U postgres -h localhost -p %port% -d %db% -c "GRANT USAGE ON SCHEMA tww_vl TO ""tww"""
139-
psql -U postgres -h localhost -p %port% -d %db% -c "GRANT USAGE ON SCHEMA tww_od TO ""tww"""
140-
psql -U postgres -h localhost -p %port% -d %db% -c "GRANT USAGE ON SCHEMA tww_import TO ""tww"""
141-
psql -U postgres -h localhost -p %port% -d %db% -c "GRANT USAGE ON SCHEMA tww_swmm TO ""tww"""
142-
psql -U postgres -h localhost -p %port% -d %db% -c "GRANT USAGE ON SCHEMA tww_sys TO ""tww"""
143137

144-
psql -U postgres -h localhost -p %port% -d %db% -c "GRANT SELECT, INSERT, UPDATE, DELETE ON ALL TABLES IN SCHEMA tww_od TO ""tww""";
145-
psql -U postgres -h localhost -p %port% -d %db% -c "GRANT SELECT, INSERT, UPDATE, DELETE ON ALL TABLES IN SCHEMA tww_swmm TO ""tww""";
146-
psql -U postgres -h localhost -p %port% -d %db% -c "GRANT SELECT, INSERT, UPDATE, DELETE ON ALL TABLES IN SCHEMA tww_import TO ""tww""";
147-
psql -U postgres -h localhost -p %port% -d %db% -c "GRANT SELECT ON ALL TABLES IN SCHEMA tww_vl TO ""tww""";
148-
psql -U postgres -h localhost -p %port% -d %db% -c "GRANT SELECT ON ALL TABLES IN SCHEMA tww_sys TO ""tww""";
149-
psql -U postgres -h localhost -p %port% -d %db% -c "GRANT SELECT ON ALL TABLES IN SCHEMA public TO ""tww"""
150-
151-
psql -U postgres -h localhost -p %port% -d %db% -c "GRANT USAGE ON ALL SEQUENCES IN SCHEMA tww_od TO ""tww"""
152-
153-
psql -U postgres -h localhost -p %port% -d %db% -c "REFRESH MATERIALIZED VIEW tww_od.vw_network_node"
154-
psql -U postgres -h localhost -p %port% -d %db% -c "REFRESH MATERIALIZED VIEW tww_od.vw_network_segment"
138+
psql -U postgres -h localhost -p %port% -d %db% -c "REFRESH MATERIALIZED VIEW tww_app.vw_network_node"
139+
psql -U postgres -h localhost -p %port% -d %db% -c "REFRESH MATERIALIZED VIEW tww_app.vw_network_segment"
155140

156141
PAUSE
157142

@@ -160,7 +145,7 @@ You also have the option to restore the latest empty data model (no demo data).
160145

161146
You are free to choose any database name.
162147

163-
* Update privileges for the tww_od, tww_sys, tww_vl, tww_network, tww_import, tww_swmm schema as described in the chapter `Create minimal roles and access`.
148+
* Update privileges for the tww_od, tww_sys, tww_vl, tww_cfg, tww_app schema as described in the chapter `Create minimal roles and access`.
164149

165150

166151
Generate the data model under Linux

0 commit comments

Comments
 (0)
Please sign in to comment.