mirror of
https://github.com/NoiTheCat/BirthdayBot.git
synced 2024-11-22 13:54:36 +00:00
40 lines
1.1 KiB
C#
40 lines
1.1 KiB
C#
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|||
|
|
|||
|
#nullable disable
|
|||
|
|
|||
|
namespace BirthdayBot.Data.Migrations
|
|||
|
{
|
|||
|
/// <inheritdoc />
|
|||
|
public partial class RemoveModRole : Migration
|
|||
|
{
|
|||
|
/// <inheritdoc />
|
|||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|||
|
{
|
|||
|
migrationBuilder.DropColumn(
|
|||
|
name: "moderated",
|
|||
|
table: "settings");
|
|||
|
|
|||
|
migrationBuilder.DropColumn(
|
|||
|
name: "moderator_role",
|
|||
|
table: "settings");
|
|||
|
}
|
|||
|
|
|||
|
/// <inheritdoc />
|
|||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|||
|
{
|
|||
|
migrationBuilder.AddColumn<bool>(
|
|||
|
name: "moderated",
|
|||
|
table: "settings",
|
|||
|
type: "boolean",
|
|||
|
nullable: false,
|
|||
|
defaultValue: false);
|
|||
|
|
|||
|
migrationBuilder.AddColumn<decimal>(
|
|||
|
name: "moderator_role",
|
|||
|
table: "settings",
|
|||
|
type: "numeric(20,0)",
|
|||
|
nullable: true);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|