using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace PSTW_CentralSystem.Migrations { /// public partial class UpdateRequestTable2 : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "fromStoreItem", table: "request", type: "int", nullable: true, oldClrType: typeof(string), oldType: "longtext", oldNullable: true) .OldAnnotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AlterColumn( name: "assignStoreItem", table: "request", type: "int", nullable: true, oldClrType: typeof(string), oldType: "longtext", oldNullable: true) .OldAnnotation("MySql:CharSet", "utf8mb4"); migrationBuilder.UpdateData( table: "AspNetUsers", keyColumn: "Id", keyValue: 1, columns: new[] { "ConcurrencyStamp", "PasswordHash", "SecurityStamp" }, values: new object[] { "853a1cf1-3482-47c4-b4b0-7b6a3af6696c", "AQAAAAIAAYagAAAAEBJPP1cHHZZyaGLaskNvSj8sOEizvDa1W2JgxMlYtK18+uhZWvW2RPlqBOhaKc0loQ==", "c911b03d-918a-482f-9c9e-773dc64cdd5d" }); migrationBuilder.UpdateData( table: "AspNetUsers", keyColumn: "Id", keyValue: 2, columns: new[] { "ConcurrencyStamp", "PasswordHash", "SecurityStamp" }, values: new object[] { "9ccd914d-6310-4d4e-88c0-e842892e1831", "AQAAAAIAAYagAAAAELxkKuB4hcfQ7Pqe/XCRgygejUsY7X9ByQuS/3FMl50OSzmz9s0byWxGYWQXbyBpGA==", "5b9a67a3-8186-474b-9499-c9c40457fb54" }); migrationBuilder.CreateIndex( name: "IX_request_assignStoreItem", table: "request", column: "assignStoreItem"); migrationBuilder.CreateIndex( name: "IX_request_fromStoreItem", table: "request", column: "fromStoreItem"); migrationBuilder.AddForeignKey( name: "FK_request_Stores_assignStoreItem", table: "request", column: "assignStoreItem", principalTable: "Stores", principalColumn: "Id"); migrationBuilder.AddForeignKey( name: "FK_request_Stores_fromStoreItem", table: "request", column: "fromStoreItem", principalTable: "Stores", principalColumn: "Id"); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropForeignKey( name: "FK_request_Stores_assignStoreItem", table: "request"); migrationBuilder.DropForeignKey( name: "FK_request_Stores_fromStoreItem", table: "request"); migrationBuilder.DropIndex( name: "IX_request_assignStoreItem", table: "request"); migrationBuilder.DropIndex( name: "IX_request_fromStoreItem", table: "request"); migrationBuilder.AlterColumn( name: "fromStoreItem", table: "request", type: "longtext", nullable: true, oldClrType: typeof(int), oldType: "int", oldNullable: true) .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AlterColumn( name: "assignStoreItem", table: "request", type: "longtext", nullable: true, oldClrType: typeof(int), oldType: "int", oldNullable: true) .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.UpdateData( table: "AspNetUsers", keyColumn: "Id", keyValue: 1, columns: new[] { "ConcurrencyStamp", "PasswordHash", "SecurityStamp" }, values: new object[] { "407727d8-2266-45f2-9b48-ef3a450f09c6", "AQAAAAIAAYagAAAAEDc91vi8/AJwNGigDpnzFh7Iplvlph0VGj9GfG1zI6tY/jM/4f3P0CWVQZ/0oetzVg==", "2faceaca-f491-455a-9f10-3f641a5a7e0d" }); migrationBuilder.UpdateData( table: "AspNetUsers", keyColumn: "Id", keyValue: 2, columns: new[] { "ConcurrencyStamp", "PasswordHash", "SecurityStamp" }, values: new object[] { "8065f043-f8ed-4733-aa42-6ee6a1ebb636", "AQAAAAIAAYagAAAAEOmfi3vsFMnCUitXZqLgUaq5+Jqmigy8HrXwNqd8IELW2yvFQAMrfHLvJM5h0c+lfQ==", "46a8accc-305f-42e6-a4a2-376bfec07e84" }); } } }