So David lived in the fortress and called it the City of David. David built all around it, from the terrace inwards.
Here are the details concerning the work crews King Solomon conscripted to build the Lord's temple, his palace, the terrace, the wall of Jerusalem, and the cities of Hazor, Megiddo, and Gezer.
Solomon built the terrace as soon as Pharaoh's daughter moved up from the city of David to the palace Solomon built for her.
This is what prompted him to rebel against the king: Solomon built a terrace and he closed up a gap in the wall of the city of his father David.
Hezekiah energetically rebuilt every broken wall. He erected towers and an outer wall, and fortified the terrace of the City of David. He made many weapons and shields.
All the leaders of Shechem and Beth Millo assembled and then went and made Abimelech king by the oak near the pillar in Shechem.
But if not, may fire blaze from Abimelech and consume the leaders of Shechem and Beth Millo! May fire also blaze from the leaders of Shechem and Beth Millo and consume Abimelech!"
He built up the city around it, from the terrace to the surrounding walls; Joab restored the rest of the city.