ID#234: enhanced migration scripts.