You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

33 lines
1.2 KiB

using Microsoft.EntityFrameworkCore.Migrations;
namespace Win_in.Sfs.Basedata.Migrations
{
public partial class week : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropIndex(
name: "IX_Basedata_SupplierTime_SupplierCode_Company_TimeSlot",
table: "Basedata_SupplierTime");
migrationBuilder.CreateIndex(
name: "IX_Basedata_SupplierTime_SupplierCode_Company_TimeSlot_Week",
table: "Basedata_SupplierTime",
columns: new[] { "SupplierCode", "Company", "TimeSlot", "Week" },
unique: true);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropIndex(
name: "IX_Basedata_SupplierTime_SupplierCode_Company_TimeSlot_Week",
table: "Basedata_SupplierTime");
migrationBuilder.CreateIndex(
name: "IX_Basedata_SupplierTime_SupplierCode_Company_TimeSlot",
table: "Basedata_SupplierTime",
columns: new[] { "SupplierCode", "Company", "TimeSlot" },
unique: true);
}
}
}