using Exferia_Aplicacion.General;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static Exferia_Aplicacion.General.Enumerados;

namespace Exferia_EntityFramework.Script_Actualizacion
{
    public class Scripts_Version_1139
    {
        public static Version G_VRS_VERSION = new Version("1.1.3.9");
        public static long G_LNG_VERSION = 1139;
        public static int G_INT_TIPO = 0;
        public static string G_STR_SCRIPT =
                                    //BORRAR TABLA COM_EntradasMercanciasLineas_Detalles
                                    " IF exists " +
                                    " ( " +
                                        " SELECT * " +
                                        " FROM INFORMATION_SCHEMA.TABLES " +
                                        " WHERE TABLE_NAME = 'COM_EntradasMercanciasLineas_Detalles' " +
                                    " ) " +
                                    "BEGIN " +
                                        "DROP TABLE COM_EntradasMercanciasLineas_Detalles" +
                                    " END " +
                                    //BORRAR TABLA COM_EntradasMercanciasLineas_Trazabilidad
                                    " IF exists " +
                                    " ( " +
                                        " SELECT * " +
                                        " FROM INFORMATION_SCHEMA.TABLES " +
                                        " WHERE TABLE_NAME = 'COM_EntradasMercanciasLineas_Trazabilidad' " +
                                    " ) " +
                                    "BEGIN " +
                                        "DROP TABLE COM_EntradasMercanciasLineas_Trazabilidad" +
                                    " END " +
                                    //BORRAR TABLA COM_EntradasMercanciasLineas_TarifasPromociones
                                    " IF exists " +
                                    " ( " +
                                        " SELECT * " +
                                        " FROM INFORMATION_SCHEMA.TABLES " +
                                        " WHERE TABLE_NAME = 'COM_EntradasMercanciasLineas_TarifasPromociones' " +
                                    " ) " +
                                    "BEGIN " +
                                        "DROP TABLE COM_EntradasMercanciasLineas_TarifasPromociones" +
                                    " END " +
                                    //BORRAR TABLA COM_EntradasMercanciasLineas
                                    " IF exists " +
                                    " ( " +
                                        " SELECT * " +
                                        " FROM INFORMATION_SCHEMA.TABLES " +
                                        " WHERE TABLE_NAME = 'COM_EntradasMercanciasLineas' " +
                                    " ) " +
                                    "BEGIN " +
                                        "DROP TABLE COM_EntradasMercanciasLineas" +
                                    " END " +
                                    //BORRAR TABLA COM_EntradasMercanciasCabecera_Resumen
                                    " IF exists " +
                                    " ( " +
                                        " SELECT * " +
                                        " FROM INFORMATION_SCHEMA.TABLES " +
                                        " WHERE TABLE_NAME = 'COM_EntradasMercanciasCabecera_Resumen' " +
                                    " ) " +
                                    "BEGIN " +
                                        "DROP TABLE COM_EntradasMercanciasCabecera_Resumen" +
                                    " END " +
                                    //BORRAR TABLA COM_EntradasMercanciasCabecera_Anexos
                                    " IF exists " +
                                    " ( " +
                                        " SELECT * " +
                                        " FROM INFORMATION_SCHEMA.TABLES " +
                                        " WHERE TABLE_NAME = 'COM_EntradasMercanciasCabecera_Anexos' " +
                                    " ) " +
                                    "BEGIN " +
                                        "DROP TABLE COM_EntradasMercanciasCabecera_Anexos" +
                                    " END " +
                                    //BORRAR TABLA COM_EntradasMercanciasCabecera
                                    " IF exists " +
                                    " ( " +
                                        " SELECT * " +
                                        " FROM INFORMATION_SCHEMA.TABLES " +
                                        " WHERE TABLE_NAME = 'COM_EntradasMercanciasCabecera' " +
                                    " ) " +
                                    "BEGIN " +
                                        "DROP TABLE COM_EntradasMercanciasCabecera" +
                                    " END " +
                                    //BORRAR TABLA COM_SolicitudesOfertasLineas_Detalles
                                    " IF exists " +
                                    " ( " +
                                        " SELECT * " +
                                        " FROM INFORMATION_SCHEMA.TABLES " +
                                        " WHERE TABLE_NAME = 'COM_SolicitudesOfertasLineas_Detalles' " +
                                    " ) " +
                                    "BEGIN " +
                                        "DROP TABLE COM_SolicitudesOfertasLineas_Detalles" +
                                    " END " +
                                    //BORRAR TABLA COM_SolicitudesOfertasLineas_TarifasPromociones
                                    " IF exists " +
                                    " ( " +
                                        " SELECT * " +
                                        " FROM INFORMATION_SCHEMA.TABLES " +
                                        " WHERE TABLE_NAME = 'COM_SolicitudesOfertasLineas_TarifasPromociones' " +
                                    " ) " +
                                    "BEGIN " +
                                        "DROP TABLE COM_SolicitudesOfertasLineas_TarifasPromociones" +
                                    " END " +
                                    //BORRAR TABLA COM_SolicitudesOfertasLineas
                                    " IF exists " +
                                    " ( " +
                                        " SELECT * " +
                                        " FROM INFORMATION_SCHEMA.TABLES " +
                                        " WHERE TABLE_NAME = 'COM_SolicitudesOfertasLineas' " +
                                    " ) " +
                                    "BEGIN " +
                                        "DROP TABLE COM_SolicitudesOfertasLineas" +
                                    " END " +
                                    //BORRAR TABLA COM_SolicitudesOfertasCabecera_Resumen
                                    " IF exists " +
                                    " ( " +
                                        " SELECT * " +
                                        " FROM INFORMATION_SCHEMA.TABLES " +
                                        " WHERE TABLE_NAME = 'COM_SolicitudesOfertasCabecera_Resumen' " +
                                    " ) " +
                                    "BEGIN " +
                                        "DROP TABLE COM_SolicitudesOfertasCabecera_Resumen" +
                                    " END " +
                                    //BORRAR TABLA COM_SolicitudesOfertasCabecera_Anexos
                                    " IF exists " +
                                    " ( " +
                                        " SELECT * " +
                                        " FROM INFORMATION_SCHEMA.TABLES " +
                                        " WHERE TABLE_NAME = 'COM_SolicitudesOfertasCabecera_Anexos' " +
                                    " ) " +
                                    "BEGIN " +
                                        "DROP TABLE COM_SolicitudesOfertasCabecera_Anexos" +
                                    " END " +
                                    //BORRAR TABLA COM_SolicitudesOfertasCabecera
                                    " IF exists " +
                                    " ( " +
                                        " SELECT * " +
                                        " FROM INFORMATION_SCHEMA.TABLES " +
                                        " WHERE TABLE_NAME = 'COM_SolicitudesOfertasCabecera' " +
                                    " ) " +
                                    "BEGIN " +
                                        "DROP TABLE COM_SolicitudesOfertasCabecera" +
                                    " END " +
                                    //BORRAR TABLA COM_PedidosCompraLineas_Detalles
                                    " IF exists " +
                                    " ( " +
                                        " SELECT * " +
                                        " FROM INFORMATION_SCHEMA.TABLES " +
                                        " WHERE TABLE_NAME = 'COM_PedidosCompraLineas_Detalles' " +
                                    " ) " +
                                    "BEGIN " +
                                        "DROP TABLE COM_PedidosCompraLineas_Detalles" +
                                    " END " +
                                    //BORRAR TABLA COM_PedidosCompraLineas_TarifasPromociones
                                    " IF exists " +
                                    " ( " +
                                        " SELECT * " +
                                        " FROM INFORMATION_SCHEMA.TABLES " +
                                        " WHERE TABLE_NAME = 'COM_PedidosCompraLineas_TarifasPromociones' " +
                                    " ) " +
                                    "BEGIN " +
                                        "DROP TABLE COM_PedidosCompraLineas_TarifasPromociones" +
                                    " END " +
                                    //BORRAR TABLA COM_PedidosCompraLineas
                                    " IF exists " +
                                    " ( " +
                                        " SELECT * " +
                                        " FROM INFORMATION_SCHEMA.TABLES " +
                                        " WHERE TABLE_NAME = 'COM_PedidosCompraLineas' " +
                                    " ) " +
                                    "BEGIN " +
                                        "DROP TABLE COM_PedidosCompraLineas" +
                                    " END " +
                                    //BORRAR TABLA COM_PedidosCompraCabecera_Resumen
                                    " IF exists " +
                                    " ( " +
                                        " SELECT * " +
                                        " FROM INFORMATION_SCHEMA.TABLES " +
                                        " WHERE TABLE_NAME = 'COM_PedidosCompraCabecera_Resumen' " +
                                    " ) " +
                                    "BEGIN " +
                                        "DROP TABLE COM_PedidosCompraCabecera_Resumen" +
                                    " END " +
                                    //BORRAR TABLA COM_PedidosCompraCabecera_Anexos
                                    " IF exists " +
                                    " ( " +
                                        " SELECT * " +
                                        " FROM INFORMATION_SCHEMA.TABLES " +
                                        " WHERE TABLE_NAME = 'COM_PedidosCompraCabecera_Anexos' " +
                                    " ) " +
                                    "BEGIN " +
                                        "DROP TABLE COM_PedidosCompraCabecera_Anexos" +
                                    " END " +
                                    //BORRAR TABLA COM_PedidosCompraCabecera
                                    " IF exists " +
                                    " ( " +
                                        " SELECT * " +
                                        " FROM INFORMATION_SCHEMA.TABLES " +
                                        " WHERE TABLE_NAME = 'COM_PedidosCompraCabecera' " +
                                    " ) " +
                                    "BEGIN " +
                                        "DROP TABLE COM_PedidosCompraCabecera" +
                                    " END ";
    }
}
