31 lines
865 B
C#
31 lines
865 B
C#
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|||
|
|
|||
|
#nullable disable
|
|||
|
|
|||
|
namespace Foxnouns.Backend.Database.Migrations
|
|||
|
{
|
|||
|
/// <inheritdoc />
|
|||
|
[DbContext(typeof(DatabaseContext))]
|
|||
|
[Migration("20241218195457_AddContextToReports")]
|
|||
|
public partial class AddContextToReports : Migration
|
|||
|
{
|
|||
|
/// <inheritdoc />
|
|||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|||
|
{
|
|||
|
migrationBuilder.AddColumn<string>(
|
|||
|
name: "context",
|
|||
|
table: "reports",
|
|||
|
type: "text",
|
|||
|
nullable: true
|
|||
|
);
|
|||
|
}
|
|||
|
|
|||
|
/// <inheritdoc />
|
|||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|||
|
{
|
|||
|
migrationBuilder.DropColumn(name: "context", table: "reports");
|
|||
|
}
|
|||
|
}
|
|||
|
}
|