blob: 4ed508ef37a0ea53f602df0d6c1fc65bece8b982 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
using Microsoft.EntityFrameworkCore.Migrations;
namespace API.Migrations
{
public partial class Authorization_Added : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "Role",
table: "AspNetUsers",
type: "text",
nullable: true);
migrationBuilder.CreateIndex(
name: "IX_AspNetUsers_UserName",
table: "AspNetUsers",
column: "UserName",
unique: true);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropIndex(
name: "IX_AspNetUsers_UserName",
table: "AspNetUsers");
migrationBuilder.DropColumn(
name: "Role",
table: "AspNetUsers");
}
}
}
|