using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace KfChatDotNetBot.Migrations { /// public partial class Images : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn( name: "ValueType", table: "Settings", type: "INTEGER", nullable: false, defaultValue: 0); migrationBuilder.CreateTable( name: "Images", columns: table => new { Id = table.Column(type: "INTEGER", nullable: false) .Annotation("Sqlite:Autoincrement", true), Key = table.Column(type: "TEXT", nullable: false), Url = table.Column(type: "TEXT", nullable: false), LastSeen = table.Column(type: "TEXT", nullable: false) }, constraints: table => { table.PrimaryKey("PK_Images", x => x.Id); }); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "Images"); migrationBuilder.DropColumn( name: "ValueType", table: "Settings"); } } }