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

namespace Exferia_EntityFramework.Script_Actualizacion
{
    class Scripts_Version_1439
    {
        public static Version G_VRS_VERSION = new Version("1.4.3.9");
        public static long G_LNG_VERSION = 1439;
        public static int G_INT_TIPO = 0;
        public static string G_STR_SCRIPT =
            $@"           
            IF (exists 
		            (
                        SELECT * 
                        FROM INFORMATION_SCHEMA.TABLES
                        WHERE TABLE_NAME = 'CTA_Modelo347Cabecera'
                    )
	            ) AND 
	            (not exists 
		            (
                        SELECT * 
                        FROM INFORMATION_SCHEMA.COLUMNS
                        WHERE COLUMN_NAME = 'ejercicio' AND TABLE_NAME = 'CTA_Modelo347Cabecera'
                    )
	            )
            BEGIN
                ALTER TABLE [CTA_Modelo347Cabecera] ADD [ejercicio] [bigint] null
            END";
    }

}
