using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace NadekoBot.Migrations { public partial class autopub : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "AutoPublishChannel", columns: table => new { Id = table.Column(type: "INTEGER", nullable: false) .Annotation("Sqlite:Autoincrement", true), GuildId = table.Column(type: "INTEGER", nullable: false), ChannelId = table.Column(type: "INTEGER", nullable: false), DateAdded = table.Column(type: "TEXT", nullable: true) }, constraints: table => { table.PrimaryKey("PK_AutoPublishChannel", x => x.Id); }); migrationBuilder.CreateIndex( name: "IX_AutoPublishChannel_GuildId", table: "AutoPublishChannel", column: "GuildId", unique: true); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "AutoPublishChannel"); } } }