]> git.openstreetmap.org Git - nominatim.git/commit
implicitly connect to database during setup
authorSarah Hoffmann <lonvia@denofr.de>
Sun, 26 Jul 2020 09:56:00 +0000 (11:56 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Sun, 26 Jul 2020 09:56:00 +0000 (11:56 +0200)
commit8cd9550295a9414eefd3c242defc9262e426a736
tree93db6ce36ff7347a8e9d9507b5099b7b5fc7f02e
parent840c692d5bf13427276fb347be686e0f6cb252ae
implicitly connect to database during setup

Make access to the DB object a function, so that the connection
can be opened implicitly when the object is accessed for the first
time. This way we no longer need to check beforehand if a specific
function of the setup needs DB access or not.

Also move the check for the module to the relevant sub step.
lib/setup/SetupClass.php
utils/setup.php