Refactor app architecture and clean local artifacts
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
using Backend.Data;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace Backend.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
[DbContext(typeof(AwardsDbContext))]
|
||||
[Migration("20260624150500_AddRiskFlagReviewNote")]
|
||||
public partial class AddRiskFlagReviewNote : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.Sql(
|
||||
"""
|
||||
ALTER TABLE IF EXISTS "RiskFlags"
|
||||
ADD COLUMN IF NOT EXISTS "ReviewNote" character varying(500) NULL;
|
||||
""");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.Sql(
|
||||
"""
|
||||
ALTER TABLE IF EXISTS "RiskFlags"
|
||||
DROP COLUMN IF EXISTS "ReviewNote";
|
||||
""");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user