using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace Ombi.Store.Migrations.ExternalMySql { public partial class MovieEpisodePlayed : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "UserPlayedEpisode", columns: table => new { Id = table.Column(type: "int", nullable: false) .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn), TheMovieDbId = table.Column(type: "int", nullable: false), SeasonNumber = table.Column(type: "int", nullable: false), EpisodeNumber = table.Column(type: "int", nullable: false), UserId = table.Column(type: "longtext", nullable: true) .Annotation("MySql:CharSet", "utf8mb4") }, constraints: table => { table.PrimaryKey("PK_UserPlayedEpisode", x => x.Id); }) .Annotation("MySql:CharSet", "utf8mb4"); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "UserPlayedEpisode"); } } }