#!/bin/bash

#DBPARAMS="dbname=mapspro host=um-pgm01h.maps.yandex.ru port=5432 user=mapspro password=****"
DBPARAMS="dbname=mapspro_import2 host=pg92.maps.dev.yandex.net port=5432 user=mapspro password=mapspro"

fixft(){
    ./ftfixer --conn="$DBPARAMS" --master=$1_fc --slave=$1_el --role=part
    ./ftfixer --conn="$DBPARAMS" --master=$1_el --slave=$1_jc --role=start
    ./ftfixer --conn="$DBPARAMS" --master=$1_el --slave=$1_jc --role=end
}

fixft "transport_metro"
fixft "transport"
fixft "transpor_airport"
fixft "transport_waterway_route"
fixft "vegetation"
fixft "hydro"
fixft "hydro_river"
fixft "urban"
fixft "urban_roadnet"
fixft "relief"
fixft "landmark"

