function register_ext, workaround sur upgradedb