mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-11-23 13:44:36 +03:00
introduce database patch level for version
This will be needed later for automatic migrations.
This commit is contained in:
parent
b4f64aa770
commit
86273f5e2a
@ -134,7 +134,7 @@ def run_osm2pgsql(options):
|
||||
def get_url(url):
|
||||
""" Get the contents from the given URL and return it as a UTF-8 string.
|
||||
"""
|
||||
headers = {"User-Agent" : "Nominatim/" + NOMINATIM_VERSION}
|
||||
headers = {"User-Agent" : "Nominatim/{0[0]}.{0[1]}.{0[2]}-{0[3]}".format(NOMINATIM_VERSION)}
|
||||
|
||||
try:
|
||||
with urlrequest.urlopen(urlrequest.Request(url, headers=headers)) as response:
|
||||
|
@ -2,7 +2,15 @@
|
||||
Version information for Nominatim.
|
||||
"""
|
||||
|
||||
NOMINATIM_VERSION = "3.6.0"
|
||||
# Version information: major, minor, patch level, database patch level
|
||||
#
|
||||
# The first three numbers refer to the last released version.
|
||||
#
|
||||
# The database patch level tracks important changes between releases
|
||||
# and must always be increased when there is a change to the database or code
|
||||
# that requires a migration.
|
||||
# Released versions always have a database patch level of 0.
|
||||
NOMINATIM_VERSION = (3, 6, 0, 0)
|
||||
|
||||
POSTGRESQL_REQUIRED_VERSION = (9, 3)
|
||||
POSTGIS_REQUIRED_VERSION = (2, 2)
|
||||
|
Loading…
Reference in New Issue
Block a user