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