31 lines
816 B
C#
31 lines
816 B
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace UserManagement.API.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class AddIdColumnToUserRoles : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "ID",
|
|
table: "UserRoles",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0)
|
|
.Annotation("SqlServer:Identity", "1, 1");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "ID",
|
|
table: "UserRoles");
|
|
}
|
|
}
|
|
}
|