143 lines
4.3 KiB
C#
143 lines
4.3 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace StandManager.Infrastructure.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class ModificheIscrizioneEvento : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "Cap",
|
|
table: "IscrizioneEvento",
|
|
type: "nvarchar(max)",
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "Cognome",
|
|
table: "IscrizioneEvento",
|
|
type: "nvarchar(max)",
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "Comune",
|
|
table: "IscrizioneEvento",
|
|
type: "nvarchar(max)",
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "Email",
|
|
table: "IscrizioneEvento",
|
|
type: "nvarchar(max)",
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "EsperienzaConDAC",
|
|
table: "IscrizioneEvento",
|
|
type: "nvarchar(max)",
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "Nome",
|
|
table: "IscrizioneEvento",
|
|
type: "nvarchar(max)",
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "NumeroTelefono",
|
|
table: "IscrizioneEvento",
|
|
type: "nvarchar(max)",
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "Provincia",
|
|
table: "IscrizioneEvento",
|
|
type: "nvarchar(max)",
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "RagioneSociale",
|
|
table: "IscrizioneEvento",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "Ruolo",
|
|
table: "IscrizioneEvento",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0);
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "Tipologia",
|
|
table: "IscrizioneEvento",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0);
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "StatoCliente",
|
|
table: "Cliente",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "Cap",
|
|
table: "IscrizioneEvento");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "Cognome",
|
|
table: "IscrizioneEvento");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "Comune",
|
|
table: "IscrizioneEvento");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "Email",
|
|
table: "IscrizioneEvento");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "EsperienzaConDAC",
|
|
table: "IscrizioneEvento");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "Nome",
|
|
table: "IscrizioneEvento");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "NumeroTelefono",
|
|
table: "IscrizioneEvento");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "Provincia",
|
|
table: "IscrizioneEvento");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "RagioneSociale",
|
|
table: "IscrizioneEvento");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "Ruolo",
|
|
table: "IscrizioneEvento");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "Tipologia",
|
|
table: "IscrizioneEvento");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "StatoCliente",
|
|
table: "Cliente");
|
|
}
|
|
}
|
|
}
|