using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable #pragma warning disable CA1814 // Prefer jagged arrays over multidimensional namespace TechHelper.Server.Migrations { /// public partial class assignmentnot_required : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.DeleteData( table: "AspNetRoles", keyColumn: "Id", keyValue: new Guid("02a808ba-bd16-4f90-bf2b-0bc42f767e00")); migrationBuilder.DeleteData( table: "AspNetRoles", keyColumn: "Id", keyValue: new Guid("9e526681-e57e-46b5-a01c-5731b27bfc4a")); migrationBuilder.DeleteData( table: "AspNetRoles", keyColumn: "Id", keyValue: new Guid("dfdfb884-4063-4161-84e0-9c225f4e883c")); migrationBuilder.AlterColumn( name: "assignment", table: "assignment_group", type: "char(36)", nullable: true, collation: "ascii_general_ci", oldClrType: typeof(Guid), oldType: "char(36)") .OldAnnotation("Relational:Collation", "ascii_general_ci"); migrationBuilder.InsertData( table: "AspNetRoles", columns: new[] { "Id", "ConcurrencyStamp", "Name", "NormalizedName" }, values: new object[,] { { new Guid("b2e087e6-ea32-46c4-aeb3-09b936cd0cf4"), null, "Teacher", "TEACHER" }, { new Guid("ba33e047-8354-4f2c-b8b1-1f46441c28fc"), null, "Administrator", "ADMINISTRATOR" }, { new Guid("d4b41bc3-612e-49dd-aeda-6a98ea0e4e68"), null, "Student", "STUDENT" } }); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DeleteData( table: "AspNetRoles", keyColumn: "Id", keyValue: new Guid("b2e087e6-ea32-46c4-aeb3-09b936cd0cf4")); migrationBuilder.DeleteData( table: "AspNetRoles", keyColumn: "Id", keyValue: new Guid("ba33e047-8354-4f2c-b8b1-1f46441c28fc")); migrationBuilder.DeleteData( table: "AspNetRoles", keyColumn: "Id", keyValue: new Guid("d4b41bc3-612e-49dd-aeda-6a98ea0e4e68")); migrationBuilder.AlterColumn( name: "assignment", table: "assignment_group", type: "char(36)", nullable: false, defaultValue: new Guid("00000000-0000-0000-0000-000000000000"), collation: "ascii_general_ci", oldClrType: typeof(Guid), oldType: "char(36)", oldNullable: true) .OldAnnotation("Relational:Collation", "ascii_general_ci"); migrationBuilder.InsertData( table: "AspNetRoles", columns: new[] { "Id", "ConcurrencyStamp", "Name", "NormalizedName" }, values: new object[,] { { new Guid("02a808ba-bd16-4f90-bf2b-0bc42f767e00"), null, "Administrator", "ADMINISTRATOR" }, { new Guid("9e526681-e57e-46b5-a01c-5731b27bfc4a"), null, "Student", "STUDENT" }, { new Guid("dfdfb884-4063-4161-84e0-9c225f4e883c"), null, "Teacher", "TEACHER" } }); } } }