using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Exferia_EntityFramework.Script_Actualizacion
{
    class Scripts_Version_1176
    {
        public static Version G_VRS_VERSION = new Version("1.1.7.6");
        public static long G_LNG_VERSION = 1176;
        public static int G_INT_TIPO = 0;
        public static string G_STR_SCRIPT =
                                     //AÑADIR el campo autorizado a la tabla MAE_Empleados
                                     "IF not exists " +
                                      "( " +
                                      "    SELECT * " +
                                      "    FROM INFORMATION_SCHEMA.COLUMNS " +
                                      "    WHERE COLUMN_NAME='autorizado' AND TABLE_NAME = 'MAE_Empleados' " +
                                      ") " +
                                    "BEGIN " +
                                        " ALTER TABLE [MAE_Empleados] ADD [autorizado] bit NULL " +
                                    "END " +
                                     //AÑADIR el campo firmante a la tabla MAE_Empleados
                                     "IF not exists " +
                                      "( " +
                                      "    SELECT * " +
                                      "    FROM INFORMATION_SCHEMA.COLUMNS " +
                                      "    WHERE COLUMN_NAME='firmante' AND TABLE_NAME = 'MAE_Empleados' " +
                                      ") " +
                                    "BEGIN " +
                                        " ALTER TABLE [MAE_Empleados] ADD [firmante] bit NULL " +
                                    "END ";
    }
}
