MDB-18 #time 20m Refactoring the table migration functions