54 lines
1.6 KiB
C#
54 lines
1.6 KiB
C#
using System;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace Socialize.Api.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
internal partial class RemoveManualReleaseUpdateEmail : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
ArgumentNullException.ThrowIfNull(migrationBuilder);
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "ManualEmailRecipientCount",
|
|
table: "ReleaseUpdates");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "ManualEmailSentAt",
|
|
table: "ReleaseUpdates");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "ManualEmailSentByUserId",
|
|
table: "ReleaseUpdates");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
ArgumentNullException.ThrowIfNull(migrationBuilder);
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "ManualEmailRecipientCount",
|
|
table: "ReleaseUpdates",
|
|
type: "integer",
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<DateTimeOffset>(
|
|
name: "ManualEmailSentAt",
|
|
table: "ReleaseUpdates",
|
|
type: "timestamp with time zone",
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<Guid>(
|
|
name: "ManualEmailSentByUserId",
|
|
table: "ReleaseUpdates",
|
|
type: "uuid",
|
|
nullable: true);
|
|
}
|
|
}
|
|
}
|