using System; using Microsoft.EntityFrameworkCore.Migrations; namespace NadekoBot.Migrations { public partial class bantemplate : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "BanTemplates", columns: table => new { Id = table.Column(nullable: false) .Annotation("Sqlite:Autoincrement", true), DateAdded = table.Column(nullable: true), GuildId = table.Column(nullable: false), Text = table.Column(nullable: true) }, constraints: table => { table.PrimaryKey("PK_BanTemplates", x => x.Id); }); migrationBuilder.CreateIndex( name: "IX_BanTemplates_GuildId", table: "BanTemplates", column: "GuildId", unique: true); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "BanTemplates"); } } }