39 lines
1.1 KiB
C#
39 lines
1.1 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace esuite.Database.SqlServer.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class AddSigmaIdToDomains : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<long>(
|
|
name: "SigmaId",
|
|
schema: "Domain",
|
|
table: "Domains",
|
|
type: "bigint",
|
|
nullable: true);
|
|
|
|
migrationBuilder.UpdateData(
|
|
schema: "Domain",
|
|
table: "Domains",
|
|
keyColumn: "Id",
|
|
keyValue: 1L,
|
|
column: "SigmaId",
|
|
value: null);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "SigmaId",
|
|
schema: "Domain",
|
|
table: "Domains");
|
|
}
|
|
}
|
|
}
|