psql -d <%= @dbname %> -c "SELECT version();" >/dev/null 2>&1
if [[ "$?" == "0" ]]; then
- ./utils/setup.php --create-functions --create-partition-functions --enable-diff-updates
+ ./nominatim admin --migrate
+ ./nominatim refresh --functions --address-levels --website
fi