using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace EntityFrameworkLOL.Migrations { /// public partial class MigrationWallah3 : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "Champion", columns: table => new { Id = table.Column(type: "INTEGER", nullable: false) .Annotation("Sqlite:Autoincrement", true), Name = table.Column(type: "TEXT", nullable: false), Bio = table.Column(type: "TEXT", nullable: false) }, constraints: table => { table.PrimaryKey("PK_Champion", x => x.Id); }); migrationBuilder.CreateTable( name: "Rune", columns: table => new { Id = table.Column(type: "INTEGER", nullable: false) .Annotation("Sqlite:Autoincrement", true), Name = table.Column(type: "TEXT", nullable: false), Description = table.Column(type: "TEXT", nullable: false) }, constraints: table => { table.PrimaryKey("PK_Rune", x => x.Id); }); migrationBuilder.CreateTable( name: "Skin", columns: table => new { Id = table.Column(type: "INTEGER", nullable: false) .Annotation("Sqlite:Autoincrement", true), Name = table.Column(type: "TEXT", nullable: false), Description = table.Column(type: "TEXT", nullable: false) }, constraints: table => { table.PrimaryKey("PK_Skin", x => x.Id); }); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "Champion"); migrationBuilder.DropTable( name: "Rune"); migrationBuilder.DropTable( name: "Skin"); } } }