fixed migration scripts (AW-744)