using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable #pragma warning disable CA1814 // Prefer jagged arrays over multidimensional namespace phronCare.API.Migrations { /// public partial class ExtendApplicationUser : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.DeleteData( table: "AspNetRoles", keyColumn: "Id", keyValue: "a36da698-f5bc-4af3-bc25-81c675d52914"); migrationBuilder.DeleteData( table: "AspNetRoles", keyColumn: "Id", keyValue: "ee45c015-8a59-469d-b2ef-1019d9ab246b"); migrationBuilder.AddColumn( name: "Address", table: "AspNetUsers", type: "nvarchar(max)", nullable: true); migrationBuilder.AddColumn( name: "BirthDate", table: "AspNetUsers", type: "datetime2", nullable: true); migrationBuilder.AddColumn( name: "CompanyName", table: "AspNetUsers", type: "nvarchar(max)", nullable: true); migrationBuilder.AddColumn( name: "Department", table: "AspNetUsers", type: "nvarchar(max)", nullable: true); migrationBuilder.AddColumn( name: "FirstName", table: "AspNetUsers", type: "nvarchar(max)", nullable: false, defaultValue: ""); migrationBuilder.AddColumn( name: "LastName", table: "AspNetUsers", type: "nvarchar(max)", nullable: false, defaultValue: ""); migrationBuilder.AddColumn( name: "ProfileImageUrl", table: "AspNetUsers", type: "nvarchar(max)", nullable: true); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "Address", table: "AspNetUsers"); migrationBuilder.DropColumn( name: "BirthDate", table: "AspNetUsers"); migrationBuilder.DropColumn( name: "CompanyName", table: "AspNetUsers"); migrationBuilder.DropColumn( name: "Department", table: "AspNetUsers"); migrationBuilder.DropColumn( name: "FirstName", table: "AspNetUsers"); migrationBuilder.DropColumn( name: "LastName", table: "AspNetUsers"); migrationBuilder.DropColumn( name: "ProfileImageUrl", table: "AspNetUsers"); migrationBuilder.InsertData( table: "AspNetRoles", columns: new[] { "Id", "ConcurrencyStamp", "Name", "NormalizedName" }, values: new object[,] { { "a36da698-f5bc-4af3-bc25-81c675d52914", "1/7/2023 00:00:00", "Administrator", "ADMINISTRATOR" }, { "ee45c015-8a59-469d-b2ef-1019d9ab246b", "1/7/2023 00:00:00", "User", "User" } }); } } }