Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Portic
gazetteer
Commits
1f779928
Commit
1f779928
authored
Nov 02, 2020
by
Christine Plumejeaud
Browse files
add grant select on ports.matching_port to api_user
parent
c45f6dee
Changes
1
Show whitespace changes
Inline
Side-by-side
BuildPorts.py
View file @
1f779928
...
...
@@ -692,6 +692,9 @@ class BuildPorts(object):
from matching_port where source1 = 'geo_general' and source2='geonames' and id1 = p.ogc_fid and best is true and geonameid is null"""
self
.
execute_sql
(
query
)
self
.
execute_sql
(
"grant select on ports.matching_port to api_user"
);
def
updateStateGeonameid
(
self
,
config
)
:
"""
...
...
@@ -1126,6 +1129,7 @@ if __name__ == '__main__':
#c.buildPortTable(config)
#c.useGeonames(config)
#c.computeMatching(config)
#c.updateRelationState(config)
#c.createReadOnlyUsers(config, 'porticapi', None)
#c.createReadOnlyUsers(config, 'api_user', 'portic')
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment