In the time of the Prophet (peace and blessings be upon him), dogs would come into the mosques and urinate, but they did not change anything on account of it.