Files
limanapp/LiMan.DB/Migrations/20250111112800_AddInstalledRelTrack.cs

51 lines
2.2 KiB
C#

using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace LiMan.DB.Migrations
{
public partial class AddInstalledRelTrack : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "InstalledReleases",
columns: table => new
{
IdxInstall = table.Column<int>(type: "int", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
CodApp = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
MastKey = table.Column<string>(type: "nvarchar(500)", maxLength: 500, nullable: true),
CodImp = table.Column<string>(type: "nvarchar(500)", maxLength: 500, nullable: true),
AppKey = table.Column<string>(type: "nvarchar(500)", maxLength: 500, nullable: true),
VersNum = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
NumImp = table.Column<int>(type: "int", nullable: false),
DtCheck = table.Column<DateTime>(type: "datetime2", nullable: false),
IdxLic = table.Column<int>(type: "int", nullable: false),
IdxSubLic = table.Column<int>(type: "int", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_InstalledReleases", x => x.IdxInstall);
table.ForeignKey(
name: "FK_InstalledReleases_Applicativi_CodApp",
column: x => x.CodApp,
principalTable: "Applicativi",
principalColumn: "CodApp");
});
migrationBuilder.CreateIndex(
name: "IX_InstalledReleases_CodApp",
table: "InstalledReleases",
column: "CodApp");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "InstalledReleases");
}
}
}