BUG 10917 No se terminan de crear campos en la BD al hacer upgrade SOLVED

- Variable not defined.
- was add validation.