using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace MiniMarket.Web.Migrations
{
///
public partial class TablaConfiguracion : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.RenameColumn(
name: "RUC",
table: "Configuraciones",
newName: "Ruc");
migrationBuilder.RenameColumn(
name: "ZonaHorariaId",
table: "Configuraciones",
newName: "EmailContacto");
migrationBuilder.AlterColumn(
name: "Ruc",
table: "Configuraciones",
type: "nvarchar(max)",
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn(
name: "NombreEmpresa",
table: "Configuraciones",
type: "nvarchar(max)",
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AddColumn(
name: "IgvPorcentaje",
table: "Configuraciones",
type: "decimal(18,2)",
nullable: false,
defaultValue: 0m);
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "IgvPorcentaje",
table: "Configuraciones");
migrationBuilder.RenameColumn(
name: "Ruc",
table: "Configuraciones",
newName: "RUC");
migrationBuilder.RenameColumn(
name: "EmailContacto",
table: "Configuraciones",
newName: "ZonaHorariaId");
migrationBuilder.AlterColumn(
name: "RUC",
table: "Configuraciones",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn(
name: "NombreEmpresa",
table: "Configuraciones",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AddColumn(
name: "Correo",
table: "Configuraciones",
type: "nvarchar(max)",
nullable: true);
}
}
}