trigger to reset node environment ids
Switch to signed int, to improve future postgres compat