using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace StandManager.Infrastructure.Migrations
{
///
public partial class PartitaIvaGiorniPresenza : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn(
name: "Note",
table: "IscrizioneEvento",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AddColumn(
name: "GiornoPresenzaAl",
table: "IscrizioneEvento",
type: "datetime2",
nullable: false,
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
migrationBuilder.AddColumn(
name: "GiornoPresenzaDal",
table: "IscrizioneEvento",
type: "datetime2",
nullable: false,
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
migrationBuilder.AddColumn(
name: "PartitaIva",
table: "IscrizioneEvento",
type: "nvarchar(max)",
nullable: true);
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "GiornoPresenzaAl",
table: "IscrizioneEvento");
migrationBuilder.DropColumn(
name: "GiornoPresenzaDal",
table: "IscrizioneEvento");
migrationBuilder.DropColumn(
name: "PartitaIva",
table: "IscrizioneEvento");
migrationBuilder.AlterColumn(
name: "Note",
table: "IscrizioneEvento",
type: "nvarchar(max)",
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
}
}
}