using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace EllieBot.Migrations.Mysql { /// public partial class honeypot : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "honeypotchannels", columns: table => new { guildid = table.Column(type: "bigint unsigned", nullable: false) .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn), channelid = table.Column(type: "bigint unsigned", nullable: false) }, constraints: table => { table.PrimaryKey("pk_honeypotchannels", x => x.guildid); }) .Annotation("MySql:CharSet", "utf8mb4"); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "honeypotchannels"); } } }