using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace NadekoBot.Migrations.PostgreSql { /// 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: "numeric(20,0)", nullable: false), featuretype = table.Column(type: "integer", nullable: false), feature = table.Column(type: "text", nullable: false), dailycount = table.Column(type: "bigint", nullable: false), hourlycount = table.Column(type: "bigint", nullable: false), monthlycount = table.Column(type: "bigint", 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"); } } }