mirror of
https://github.com/NoiTheCat/BirthdayBot.git
synced 2024-11-24 01:14:12 +00:00
Noi
d262191d52
Removed precondition code, moderator roles, unused database values. Slightly rearranged commands.
39 lines
1.1 KiB
C#
39 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);
|
|
}
|
|
}
|
|
}
|