A full-lifetime planetary simulation: from stellar birth cluster evolution to planetary destruction around white dwarfs