There was no common EU agreement to do that though. It was mostly Germany posturing for good PR and to try to save their ageing demographics and supplement their manufacturing sector which is dependent on imported cheap labor to stay competitive, as the cheap labor from the Eastern Block dried up.
Denmark and other EU members chose to opt out from the refugee sharing scheme back then, denying to take them in, and this was also one of the main factors that violently triggered Brexit as lots of brits feared the idea of having to be obliged to take in unwanted people just because that's what Germany was suggesting to other members.
All it did was create dissident among EU members and help break up the EU.