Well, having started a pacifist run, the book in Toriel's bookshelf says they walked all the way to the other end of the cavern (underground) to what Asgore named Home.
So I think new home, where the barrier is, might be their original entrapment point.
And it's possible the hole didn't exist originally