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.
69 lines
2.2 KiB
69 lines
2.2 KiB
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace TaskManager.EntityFramework.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class z20250610000240003 : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Id",
|
|
table: "SUPPLIER_CON_MMRP",
|
|
type: "nvarchar(450)",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_CON_PO_Id",
|
|
table: "SUPPLIER_CON_PO",
|
|
column: "Id",
|
|
unique: true,
|
|
filter: "[Id] IS NOT NULL");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_CON_MMRP_Id",
|
|
table: "SUPPLIER_CON_MMRP",
|
|
column: "Id",
|
|
unique: true,
|
|
filter: "[Id] IS NOT NULL");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_CON_DATE_Id",
|
|
table: "SUPPLIER_CON_DATE",
|
|
column: "Id",
|
|
unique: true,
|
|
filter: "[Id] IS NOT NULL");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropIndex(
|
|
name: "IX_SUPPLIER_CON_PO_Id",
|
|
table: "SUPPLIER_CON_PO");
|
|
|
|
migrationBuilder.DropIndex(
|
|
name: "IX_SUPPLIER_CON_MMRP_Id",
|
|
table: "SUPPLIER_CON_MMRP");
|
|
|
|
migrationBuilder.DropIndex(
|
|
name: "IX_SUPPLIER_CON_DATE_Id",
|
|
table: "SUPPLIER_CON_DATE");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Id",
|
|
table: "SUPPLIER_CON_MMRP",
|
|
type: "nvarchar(max)",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(450)",
|
|
oldNullable: true);
|
|
}
|
|
}
|
|
}
|
|
|