using System; using Microsoft.EntityFrameworkCore.Migrations; namespace NadekoBot.Migrations { public partial class patreonrewards : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "RewardedUsers", columns: table => new { Id = table.Column(nullable: false) .Annotation("Sqlite:Autoincrement", true), AmountRewardedThisMonth = table.Column(nullable: false), DateAdded = table.Column(nullable: true), LastReward = table.Column(nullable: false), UserId = table.Column(nullable: false) }, constraints: table => { table.PrimaryKey("PK_RewardedUsers", x => x.Id); }); migrationBuilder.CreateIndex( name: "IX_RewardedUsers_UserId", table: "RewardedUsers", column: "UserId", unique: true); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "RewardedUsers"); } } }