32 lines
1.0 KiB
C#
32 lines
1.0 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace WebDoorCreator.Data.Migrations.WDCData
|
|
{
|
|
public partial class AddIdTestTable : Migration
|
|
{
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.CreateTable(
|
|
name: "TestTable",
|
|
columns: table => new
|
|
{
|
|
IdUni = table.Column<string>(type: "nvarchar(450)", nullable: false),
|
|
Campo1 = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
|
|
Campo2 = table.Column<string>(type: "nvarchar(500)", maxLength: 500, nullable: false)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_TestTable", x => x.IdUni);
|
|
});
|
|
}
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropTable(
|
|
name: "TestTable");
|
|
}
|
|
}
|
|
}
|