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

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


    }
}
