@@ -26,8 +26,8 @@ Create minimal roles and access
26
26
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
27
27
28
28
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)
31
31
32
32
`12_0_roles.sql ` has to be run before restoring the demodata database.
33
33
`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).
134
134
createdb -U postgres -p %port% %db%
135
135
136
136
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"""
143
137
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"
155
140
156
141
PAUSE
157
142
@@ -160,7 +145,7 @@ You also have the option to restore the latest empty data model (no demo data).
160
145
161
146
You are free to choose any database name.
162
147
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 `.
164
149
165
150
166
151
Generate the data model under Linux
0 commit comments