using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace Infrastructure.Migrations { /// public partial class AddPlayNumRank : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "PlayNumRank", columns: table => new { MusicId = table.Column(type: "INTEGER", nullable: false), PlayCount = table.Column(type: "INTEGER", nullable: false), Rank = table.Column(type: "INTEGER", nullable: false), Rank2 = table.Column(type: "INTEGER", nullable: false), PrevRank = table.Column(type: "INTEGER", nullable: false), PrevRank2 = table.Column(type: "INTEGER", nullable: false), Title = table.Column(type: "TEXT", nullable: false), Artist = table.Column(type: "TEXT", nullable: false) }, constraints: table => { table.PrimaryKey("PK_PlayNumRank", x => x.MusicId); }); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "PlayNumRank"); } } }