72 lines
2.7 KiB
C#
72 lines
2.7 KiB
C#
using System;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
#pragma warning disable CA1814 // Prefer jagged arrays over multidimensional
|
|
|
|
namespace TechHelper.Server.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class upde : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DeleteData(
|
|
table: "AspNetRoles",
|
|
keyColumn: "Id",
|
|
keyValue: new Guid("5f0c1b3c-ad05-4ca9-b9fd-a359cb518236"));
|
|
|
|
migrationBuilder.DeleteData(
|
|
table: "AspNetRoles",
|
|
keyColumn: "Id",
|
|
keyValue: new Guid("a81f5de2-9691-45fa-8d31-ae4ffeb34453"));
|
|
|
|
migrationBuilder.DeleteData(
|
|
table: "AspNetRoles",
|
|
keyColumn: "Id",
|
|
keyValue: new Guid("c310acf7-9605-4c55-8b9f-9bf9cd2dadb9"));
|
|
|
|
migrationBuilder.InsertData(
|
|
table: "AspNetRoles",
|
|
columns: new[] { "Id", "ConcurrencyStamp", "Name", "NormalizedName" },
|
|
values: new object[,]
|
|
{
|
|
{ new Guid("c0f247ab-b12a-432e-8ce7-d0e28811957e"), null, "Student", "STUDENT" },
|
|
{ new Guid("f282e759-deb5-4366-aaf1-51366131cf75"), null, "Administrator", "ADMINISTRATOR" },
|
|
{ new Guid("f9eeea07-eeda-4bbe-a2e4-6aef2f3c7c9a"), null, "Teacher", "TEACHER" }
|
|
});
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DeleteData(
|
|
table: "AspNetRoles",
|
|
keyColumn: "Id",
|
|
keyValue: new Guid("c0f247ab-b12a-432e-8ce7-d0e28811957e"));
|
|
|
|
migrationBuilder.DeleteData(
|
|
table: "AspNetRoles",
|
|
keyColumn: "Id",
|
|
keyValue: new Guid("f282e759-deb5-4366-aaf1-51366131cf75"));
|
|
|
|
migrationBuilder.DeleteData(
|
|
table: "AspNetRoles",
|
|
keyColumn: "Id",
|
|
keyValue: new Guid("f9eeea07-eeda-4bbe-a2e4-6aef2f3c7c9a"));
|
|
|
|
migrationBuilder.InsertData(
|
|
table: "AspNetRoles",
|
|
columns: new[] { "Id", "ConcurrencyStamp", "Name", "NormalizedName" },
|
|
values: new object[,]
|
|
{
|
|
{ new Guid("5f0c1b3c-ad05-4ca9-b9fd-a359cb518236"), null, "Teacher", "TEACHER" },
|
|
{ new Guid("a81f5de2-9691-45fa-8d31-ae4ffeb34453"), null, "Administrator", "ADMINISTRATOR" },
|
|
{ new Guid("c310acf7-9605-4c55-8b9f-9bf9cd2dadb9"), null, "Student", "STUDENT" }
|
|
});
|
|
}
|
|
}
|
|
}
|