FMS-280 - Fix datamigration script