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

namespace Exferia_EntityFramework.Script_Actualizacion
{
    class Scripts_Version_1421
    {
        public static Version G_VRS_VERSION = new Version("1.4.2.1");
        public static long G_LNG_VERSION = 1421;
        public static int G_INT_TIPO = 0;
        public static string G_STR_SCRIPT =
            $@"IF (exists 
		                (
                            SELECT * 
                            FROM INFORMATION_SCHEMA.TABLES
                            WHERE TABLE_NAME = 'MAE_Vehiculos'
                        )
	                ) AND 
	                (not exists 
		                (
                            SELECT * 
                            FROM INFORMATION_SCHEMA.COLUMNS
                            WHERE COLUMN_NAME = 'tonelaje' AND TABLE_NAME = 'MAE_Vehiculos'
                        )
	                )
                BEGIN
                    ALTER TABLE [MAE_Vehiculos] ADD [tonelaje] [decimal](18, 3) NULL
                    ALTER TABLE [MAE_Vehiculos] ADD [porcentaje] [decimal](10, 3) NULL
                END";
    }

}
