using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace BirthdayBot.Data.Migrations { /// public partial class RemoveBlocking : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "banned_users"); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "banned_users", columns: table => new { guildid = table.Column(name: "guild_id", type: "numeric(20,0)", nullable: false), userid = table.Column(name: "user_id", type: "numeric(20,0)", nullable: false) }, constraints: table => { table.PrimaryKey("banned_users_pkey", x => new { x.guildid, x.userid }); table.ForeignKey( name: "banned_users_guild_id_fkey", column: x => x.guildid, principalTable: "settings", principalColumn: "guild_id", onDelete: ReferentialAction.Cascade); }); } } }