|
|
|
@ -23,6 +23,19 @@ namespace EFlib.Migrations
|
|
|
|
|
table.PrimaryKey("PK_LargeImages", x => x.Id);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateTable(
|
|
|
|
|
name: "Skills",
|
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
Name = table.Column<string>(type: "TEXT", maxLength: 250, nullable: false),
|
|
|
|
|
Description = table.Column<string>(type: "TEXT", maxLength: 500, nullable: false),
|
|
|
|
|
Type = table.Column<int>(type: "INTEGER", nullable: false)
|
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
|
|
|
|
table.PrimaryKey("PK_Skills", x => x.Name);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateTable(
|
|
|
|
|
name: "Champions",
|
|
|
|
|
columns: table => new
|
|
|
|
@ -64,22 +77,27 @@ namespace EFlib.Migrations
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateTable(
|
|
|
|
|
name: "Skills",
|
|
|
|
|
name: "EFChampionEFSkill",
|
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
Name = table.Column<string>(type: "TEXT", nullable: false),
|
|
|
|
|
Description = table.Column<string>(type: "TEXT", nullable: false),
|
|
|
|
|
Type = table.Column<int>(type: "INTEGER", nullable: false),
|
|
|
|
|
EFChampionName = table.Column<string>(type: "TEXT", nullable: true)
|
|
|
|
|
ChampionsName = table.Column<string>(type: "TEXT", nullable: false),
|
|
|
|
|
SkillsName = table.Column<string>(type: "TEXT", nullable: false)
|
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
|
|
|
|
table.PrimaryKey("PK_Skills", x => x.Name);
|
|
|
|
|
table.PrimaryKey("PK_EFChampionEFSkill", x => new { x.ChampionsName, x.SkillsName });
|
|
|
|
|
table.ForeignKey(
|
|
|
|
|
name: "FK_Skills_Champions_EFChampionName",
|
|
|
|
|
column: x => x.EFChampionName,
|
|
|
|
|
name: "FK_EFChampionEFSkill_Champions_ChampionsName",
|
|
|
|
|
column: x => x.ChampionsName,
|
|
|
|
|
principalTable: "Champions",
|
|
|
|
|
principalColumn: "Name");
|
|
|
|
|
principalColumn: "Name",
|
|
|
|
|
onDelete: ReferentialAction.Cascade);
|
|
|
|
|
table.ForeignKey(
|
|
|
|
|
name: "FK_EFChampionEFSkill_Skills_SkillsName",
|
|
|
|
|
column: x => x.SkillsName,
|
|
|
|
|
principalTable: "Skills",
|
|
|
|
|
principalColumn: "Name",
|
|
|
|
|
onDelete: ReferentialAction.Cascade);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateTable(
|
|
|
|
@ -121,9 +139,9 @@ namespace EFlib.Migrations
|
|
|
|
|
column: "NameChampion");
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateIndex(
|
|
|
|
|
name: "IX_Skills_EFChampionName",
|
|
|
|
|
table: "Skills",
|
|
|
|
|
column: "EFChampionName");
|
|
|
|
|
name: "IX_EFChampionEFSkill_SkillsName",
|
|
|
|
|
table: "EFChampionEFSkill",
|
|
|
|
|
column: "SkillsName");
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateIndex(
|
|
|
|
|
name: "IX_Skins_ImageId",
|
|
|
|
@ -143,11 +161,14 @@ namespace EFlib.Migrations
|
|
|
|
|
name: "Characteristics");
|
|
|
|
|
|
|
|
|
|
migrationBuilder.DropTable(
|
|
|
|
|
name: "Skills");
|
|
|
|
|
name: "EFChampionEFSkill");
|
|
|
|
|
|
|
|
|
|
migrationBuilder.DropTable(
|
|
|
|
|
name: "Skins");
|
|
|
|
|
|
|
|
|
|
migrationBuilder.DropTable(
|
|
|
|
|
name: "Skills");
|
|
|
|
|
|
|
|
|
|
migrationBuilder.DropTable(
|
|
|
|
|
name: "Champions");
|
|
|
|
|
|