107 lines
3.5 KiB
C#
107 lines
3.5 KiB
C#
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|||
|
|
|
|||
|
|
#nullable disable
|
|||
|
|
|
|||
|
|
namespace GestorFacturas.API.Migrations
|
|||
|
|
{
|
|||
|
|
/// <inheritdoc />
|
|||
|
|
public partial class IncreaseConfigColumnsSize : Migration
|
|||
|
|
{
|
|||
|
|
/// <inheritdoc />
|
|||
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|||
|
|
{
|
|||
|
|
migrationBuilder.AlterColumn<string>(
|
|||
|
|
name: "SMTPUsuario",
|
|||
|
|
table: "Configuraciones",
|
|||
|
|
type: "nvarchar(500)",
|
|||
|
|
maxLength: 500,
|
|||
|
|
nullable: true,
|
|||
|
|
oldClrType: typeof(string),
|
|||
|
|
oldType: "nvarchar(200)",
|
|||
|
|
oldMaxLength: 200,
|
|||
|
|
oldNullable: true);
|
|||
|
|
|
|||
|
|
migrationBuilder.AlterColumn<string>(
|
|||
|
|
name: "SMTPClave",
|
|||
|
|
table: "Configuraciones",
|
|||
|
|
type: "nvarchar(500)",
|
|||
|
|
maxLength: 500,
|
|||
|
|
nullable: true,
|
|||
|
|
oldClrType: typeof(string),
|
|||
|
|
oldType: "nvarchar(200)",
|
|||
|
|
oldMaxLength: 200,
|
|||
|
|
oldNullable: true);
|
|||
|
|
|
|||
|
|
migrationBuilder.AlterColumn<string>(
|
|||
|
|
name: "DBUsuario",
|
|||
|
|
table: "Configuraciones",
|
|||
|
|
type: "nvarchar(500)",
|
|||
|
|
maxLength: 500,
|
|||
|
|
nullable: true,
|
|||
|
|
oldClrType: typeof(string),
|
|||
|
|
oldType: "nvarchar(100)",
|
|||
|
|
oldMaxLength: 100,
|
|||
|
|
oldNullable: true);
|
|||
|
|
|
|||
|
|
migrationBuilder.AlterColumn<string>(
|
|||
|
|
name: "DBClave",
|
|||
|
|
table: "Configuraciones",
|
|||
|
|
type: "nvarchar(500)",
|
|||
|
|
maxLength: 500,
|
|||
|
|
nullable: true,
|
|||
|
|
oldClrType: typeof(string),
|
|||
|
|
oldType: "nvarchar(200)",
|
|||
|
|
oldMaxLength: 200,
|
|||
|
|
oldNullable: true);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
/// <inheritdoc />
|
|||
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|||
|
|
{
|
|||
|
|
migrationBuilder.AlterColumn<string>(
|
|||
|
|
name: "SMTPUsuario",
|
|||
|
|
table: "Configuraciones",
|
|||
|
|
type: "nvarchar(200)",
|
|||
|
|
maxLength: 200,
|
|||
|
|
nullable: true,
|
|||
|
|
oldClrType: typeof(string),
|
|||
|
|
oldType: "nvarchar(500)",
|
|||
|
|
oldMaxLength: 500,
|
|||
|
|
oldNullable: true);
|
|||
|
|
|
|||
|
|
migrationBuilder.AlterColumn<string>(
|
|||
|
|
name: "SMTPClave",
|
|||
|
|
table: "Configuraciones",
|
|||
|
|
type: "nvarchar(200)",
|
|||
|
|
maxLength: 200,
|
|||
|
|
nullable: true,
|
|||
|
|
oldClrType: typeof(string),
|
|||
|
|
oldType: "nvarchar(500)",
|
|||
|
|
oldMaxLength: 500,
|
|||
|
|
oldNullable: true);
|
|||
|
|
|
|||
|
|
migrationBuilder.AlterColumn<string>(
|
|||
|
|
name: "DBUsuario",
|
|||
|
|
table: "Configuraciones",
|
|||
|
|
type: "nvarchar(100)",
|
|||
|
|
maxLength: 100,
|
|||
|
|
nullable: true,
|
|||
|
|
oldClrType: typeof(string),
|
|||
|
|
oldType: "nvarchar(500)",
|
|||
|
|
oldMaxLength: 500,
|
|||
|
|
oldNullable: true);
|
|||
|
|
|
|||
|
|
migrationBuilder.AlterColumn<string>(
|
|||
|
|
name: "DBClave",
|
|||
|
|
table: "Configuraciones",
|
|||
|
|
type: "nvarchar(200)",
|
|||
|
|
maxLength: 200,
|
|||
|
|
nullable: true,
|
|||
|
|
oldClrType: typeof(string),
|
|||
|
|
oldType: "nvarchar(500)",
|
|||
|
|
oldMaxLength: 500,
|
|||
|
|
oldNullable: true);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|