Planning chiefs have given the green light for an expansion of Gretna Primary.
The school will be extended with two additional temporary classrooms due to an anticipated climb in pupil roll numbers.
Councillors sitting on Dumfries and Galloway planning committee last week approved the installation of a double modular building at the rear of the school to provide extra teaching capacity.
It is only allowed to be in place for three years from the date of planning permission and any works required to properly reinstate the land afterwards should be completed a month in advance.
The need for additional classrooms has been raised by parents and teachers due to a lack of adequate space within the school.
While the school had gone down from 12 classes to 11 last term, it was acknowledged that there was no dedicated space for providing mental health support for pupils.
Fears were also expressed about the pupil roll climbing rapidly further down the line due to new housing in Gretna.
Both Hunters Lodge Hotel and Gretna Bowling Club, which are situated next to the school, had raised concerns about a lack of parking provision and the potential for damage to the existing access road.
However, the issues were not discussed at the planning committee.