Wow.
Thanks to pointing it out @AnandVyas , didn't realize that it (didn't) work this way.
This is awkward if you want to migrate a whole library to a different database.
Crerating a new Library is easy, but you then need change the Library in each table that uses it as its Physical location.
One idea, you could export all tables for that Libray, and then re-import and map the Libary to your new one? Should at least be less manual work if you have let's say more than 10-20 tables to adjust.
Data never sleeps