def setMilestoneList(self, m):
        self.dbCheck()
        with self.env.db_transaction as db:
            db("DELETE FROM milestone")
            for value in m:
                # due, completed, description are also available
                db("INSERT INTO milestone (name) VALUES (%s)", value)
Remove all milestones, set them to `m` (
dataset/ETHPy150Open edgewall/trac/contrib/sourceforge2trac.py/TracDatabase.setMilestoneList