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

namespace Exferia_EntityFramework.Script_Actualizacion
{
    class Scripts_Version_1363
    {
        public static Version G_VRS_VERSION = new Version("1.3.6.3");
        public static long G_LNG_VERSION = 1363;
        public static int G_INT_TIPO = 0;
        public static string G_STR_SCRIPT =
                                    //MODIFICAR el campo iban a la tabla MAE_CuentasBancariasSEPA_Cobros
                                    "IF exists " +
                                      "( " +
                                      "    SELECT * " +
                                      "    FROM INFORMATION_SCHEMA.COLUMNS " +
                                      "    WHERE COLUMN_NAME='iban' AND TABLE_NAME = 'MAE_CuentasBancariasSEPA_Cobros' AND IS_NULLABLE='NO' " +
                                      ") " +
                                    "BEGIN " +
                                        " ALTER TABLE [MAE_CuentasBancariasSEPA_Cobros] ALTER COLUMN [iban] varchar(34) NULL " +
                                    "END " +
                                    //MODIFICAR el campo iban a la tabla MAE_CuentasBancariasSEPA_Pagos
                                    "IF exists " +
                                      "( " +
                                      "    SELECT * " +
                                      "    FROM INFORMATION_SCHEMA.COLUMNS " +
                                      "    WHERE COLUMN_NAME='iban' AND TABLE_NAME = 'MAE_CuentasBancariasSEPA_Pagos' AND IS_NULLABLE='NO' " +
                                      ") " +
                                    "BEGIN " +
                                        " ALTER TABLE [MAE_CuentasBancariasSEPA_Pagos] ALTER COLUMN [iban] varchar(34) NULL " +
                                    "END ";











    }

}
