SUBD/Forum/ForumDatabase/Migrations/20230429152341_Init1.cs

30 lines
740 B
C#

using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace ForumDatabase.Migrations
{
/// <inheritdoc />
public partial class Init1 : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<int>(
name: "RoleId",
table: "Users",
type: "integer",
nullable: false,
defaultValue: 0);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "RoleId",
table: "Users");
}
}
}