Added migration for removing IsAdmin column since we use IdentityService Roles instead.
This commit is contained in:
parent
5e18c1bf3a
commit
ac2b40aba6
4 changed files with 533 additions and 4 deletions
24
API/Data/Migrations/20210103201043_RemoveUserIsAdmin.cs
Normal file
24
API/Data/Migrations/20210103201043_RemoveUserIsAdmin.cs
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace API.Data.Migrations
|
||||
{
|
||||
public partial class RemoveUserIsAdmin : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "IsAdmin",
|
||||
table: "AspNetUsers");
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<bool>(
|
||||
name: "IsAdmin",
|
||||
table: "AspNetUsers",
|
||||
type: "INTEGER",
|
||||
nullable: false,
|
||||
defaultValue: false);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue