Fix syntax errors in migration