using System; using Microsoft.EntityFrameworkCore.Migrations; namespace NadekoBot.Migrations { public partial class repeaterdrop : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "Repeaters"); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "Repeaters", columns: table => new { Id = table.Column(nullable: false) .Annotation("Sqlite:Autoincrement", true), ChannelId = table.Column(nullable: false), GuildId = table.Column(nullable: false), Interval = table.Column(nullable: false), Message = table.Column(nullable: true) }, constraints: table => { table.PrimaryKey("PK_Repeaters", x => x.Id); }); migrationBuilder.CreateIndex( name: "IX_Repeaters_channelId", table: "Repeaters", column: "ChannelId", unique: true); } } }