using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace PARR.DAL.Migrations
{
///
public partial class tblHostsEkIsUnique : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropIndex(
name: "IX_Hosts_Ek_IP",
table: "Hosts");
migrationBuilder.CreateIndex(
name: "IX_Hosts_Ek",
table: "Hosts",
column: "Ek",
unique: true);
migrationBuilder.CreateIndex(
name: "IX_Hosts_IP",
table: "Hosts",
column: "IP");
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropIndex(
name: "IX_Hosts_Ek",
table: "Hosts");
migrationBuilder.DropIndex(
name: "IX_Hosts_IP",
table: "Hosts");
migrationBuilder.CreateIndex(
name: "IX_Hosts_Ek_IP",
table: "Hosts",
columns: new[] { "Ek", "IP" });
}
}
}