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(nullable: false), DiscordMessageId = table.Column(nullable: false), DiscordRoleId = table.Column(nullable: false), DiscordEmoteNameEncoded = table.Column(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); } } }