33 lines
1.1 KiB
C#
33 lines
1.1 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace WebDoorCreator.Data.Migrations.WDCData
|
|
{
|
|
public partial class ConfigTable : Migration
|
|
{
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.CreateTable(
|
|
name: "Config",
|
|
columns: table => new
|
|
{
|
|
chiave = table.Column<string>(type: "nvarchar(450)", nullable: false),
|
|
valore = table.Column<string>(type: "nvarchar(max)", nullable: false),
|
|
valoreStd = table.Column<string>(type: "nvarchar(max)", nullable: false),
|
|
note = table.Column<string>(type: "nvarchar(max)", nullable: false)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_Config", x => x.chiave);
|
|
});
|
|
}
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropTable(
|
|
name: "Config");
|
|
}
|
|
}
|
|
}
|