using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace NadekoBot.Migrations { /// public partial class removepatronlimits : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "PatronQuotas"); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "PatronQuotas", columns: table => new { UserId = table.Column(type: "INTEGER", nullable: false), FeatureType = table.Column(type: "INTEGER", nullable: false), Feature = table.Column(type: "TEXT", nullable: false), DailyCount = table.Column(type: "INTEGER", nullable: false), HourlyCount = table.Column(type: "INTEGER", nullable: false), MonthlyCount = table.Column(type: "INTEGER", nullable: false) }, constraints: table => { table.PrimaryKey("PK_PatronQuotas", x => new { x.UserId, x.FeatureType, x.Feature }); }); migrationBuilder.CreateIndex( name: "IX_PatronQuotas_UserId", table: "PatronQuotas", column: "UserId"); } } }