The age-metallicity relationship in the Small Magellanic Cloud periphery