using System; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace EllieBot.Migrations.Mysql { public partial class stondeldbcache : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "streamonlinemessages", columns: table => new { id = table.Column(type: "int", nullable: false) .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn), channelid = table.Column(type: "bigint unsigned", nullable: false), messageid = table.Column(type: "bigint unsigned", nullable: false), type = table.Column(type: "int", nullable: false), name = table.Column(type: "longtext", nullable: true) .Annotation("MySql:CharSet", "utf8mb4"), dateadded = table.Column(type: "datetime(6)", nullable: true) }, constraints: table => { table.PrimaryKey("pk_streamonlinemessages", x => x.id); }) .Annotation("MySql:CharSet", "utf8mb4"); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "streamonlinemessages"); } } }