using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace PSTW_CentralSystem.Migrations { /// public partial class UpdateRequestTable : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.RenameColumn( name: "requestId", table: "request", newName: "requestID"); migrationBuilder.AlterColumn( name: "requestID", table: "request", nullable: false) .Annotation("SqlServer:Identity", "1, 1"); // Auto Increment migrationBuilder.AddPrimaryKey("PK_request", "request", "requestID"); migrationBuilder.UpdateData( table: "AspNetUsers", keyColumn: "Id", keyValue: 1, columns: new[] { "ConcurrencyStamp", "PasswordHash", "SecurityStamp" }, values: new object[] { "d801514b-2c36-4df7-9bb5-1c7e351ed27e", "AQAAAAIAAYagAAAAEBSoDiGEYlobLgzVcffYwvTtm1WnXpqrBBT1yYP+kruV4OTtizW7Sel94qAfqUjGcw==", "6132b0af-6a7f-4f38-8959-d049ed486e8f" }); migrationBuilder.UpdateData( table: "AspNetUsers", keyColumn: "Id", keyValue: 2, columns: new[] { "ConcurrencyStamp", "PasswordHash", "SecurityStamp" }, values: new object[] { "14f11e89-bb92-49dd-a8df-ec5b0d49df2d", "AQAAAAIAAYagAAAAEEvcS1SY+9pxZKH/P1l4TaodgW3SFSRfcZ+PnjB3MiMmEUSyYoo64AQtX0bOxFSX2g==", "6dca2498-5150-4369-9923-6f19a48258d4" }); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.RenameColumn( name: "requestID", table: "request", newName: "requestId"); migrationBuilder.UpdateData( table: "AspNetUsers", keyColumn: "Id", keyValue: 1, columns: new[] { "ConcurrencyStamp", "PasswordHash", "SecurityStamp" }, values: new object[] { "402e8e19-59a4-4fae-8ffe-4d935bcb1104", "AQAAAAIAAYagAAAAEM22wL5Kx9mwPIJilJAgzudLHg+HduDhJaq+BjD3jh5bqPzi+OnTzAEN49l1IeBqcw==", "4a127c4f-3199-4037-8c02-0a21b750351b" }); migrationBuilder.UpdateData( table: "AspNetUsers", keyColumn: "Id", keyValue: 2, columns: new[] { "ConcurrencyStamp", "PasswordHash", "SecurityStamp" }, values: new object[] { "05ebfe99-3f46-43b8-9aaa-e01c5bb31a86", "AQAAAAIAAYagAAAAEF3NUsfCVQ3KOv0uND7ech54XBz7+ffJ5x1YYuN0eaBciYQ/K2Jlah/KQR19ykaHbQ==", "42178537-99cc-4701-a488-8f1c0e774855" }); } } }