34 lines
1.2 KiB
C#
34 lines
1.2 KiB
C#
using System;
|
|
using Microsoft.EntityFrameworkCore.Metadata;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
namespace ChaosBot.Migrations
|
|
{
|
|
public partial class RoleReaction : Migration
|
|
{
|
|
protected readonly string Table = "RoleReactions";
|
|
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.CreateTable(
|
|
name: Table,
|
|
columns: table => new
|
|
{
|
|
DiscordGuildId = table.Column<ulong>(nullable: false),
|
|
DiscordMessageId = table.Column<ulong>(nullable: false),
|
|
DiscordRoleId = table.Column<ulong>(nullable: false),
|
|
DiscordEmoteNameEncoded = table.Column<string>(nullable: false, maxLength: 128)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_RoleReactions", x => new { x.DiscordGuildId, x.DiscordRoleId, x.DiscordMessageId, x.DiscordEmoteNameEncoded });
|
|
});
|
|
}
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropTable(name: Table);
|
|
}
|
|
}
|
|
}
|