|
|
@ -6,7 +6,7 @@ using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
namespace EFlib.Migrations
|
|
|
|
namespace EFlib.Migrations
|
|
|
|
{
|
|
|
|
{
|
|
|
|
/// <inheritdoc />
|
|
|
|
/// <inheritdoc />
|
|
|
|
public partial class myMigrations : Migration
|
|
|
|
public partial class myMigration : Migration
|
|
|
|
{
|
|
|
|
{
|
|
|
|
/// <inheritdoc />
|
|
|
|
/// <inheritdoc />
|
|
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
|
@ -27,7 +27,7 @@ namespace EFlib.Migrations
|
|
|
|
name: "Champions",
|
|
|
|
name: "Champions",
|
|
|
|
columns: table => new
|
|
|
|
columns: table => new
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Name = table.Column<string>(type: "TEXT", maxLength: 256, nullable: false),
|
|
|
|
Name = table.Column<string>(type: "TEXT", maxLength: 250, nullable: false),
|
|
|
|
Bio = table.Column<string>(type: "TEXT", maxLength: 500, nullable: false),
|
|
|
|
Bio = table.Column<string>(type: "TEXT", maxLength: 500, nullable: false),
|
|
|
|
Icon = table.Column<string>(type: "TEXT", nullable: false),
|
|
|
|
Icon = table.Column<string>(type: "TEXT", nullable: false),
|
|
|
|
Class = table.Column<int>(type: "INTEGER", nullable: false),
|
|
|
|
Class = table.Column<int>(type: "INTEGER", nullable: false),
|
|
|
@ -48,18 +48,16 @@ namespace EFlib.Migrations
|
|
|
|
name: "EFCharacteristics",
|
|
|
|
name: "EFCharacteristics",
|
|
|
|
columns: table => new
|
|
|
|
columns: table => new
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Id = table.Column<int>(type: "INTEGER", nullable: false)
|
|
|
|
Name = table.Column<string>(type: "TEXT", maxLength: 250, nullable: false),
|
|
|
|
.Annotation("Sqlite:Autoincrement", true),
|
|
|
|
|
|
|
|
Name = table.Column<string>(type: "TEXT", nullable: false),
|
|
|
|
|
|
|
|
Value = table.Column<int>(type: "INTEGER", nullable: false),
|
|
|
|
Value = table.Column<int>(type: "INTEGER", nullable: false),
|
|
|
|
EFChampionName = table.Column<string>(type: "TEXT", nullable: false)
|
|
|
|
NameChampion = table.Column<string>(type: "TEXT", nullable: false)
|
|
|
|
},
|
|
|
|
},
|
|
|
|
constraints: table =>
|
|
|
|
constraints: table =>
|
|
|
|
{
|
|
|
|
{
|
|
|
|
table.PrimaryKey("PK_EFCharacteristics", x => x.Id);
|
|
|
|
table.PrimaryKey("PK_EFCharacteristics", x => x.Name);
|
|
|
|
table.ForeignKey(
|
|
|
|
table.ForeignKey(
|
|
|
|
name: "FK_EFCharacteristics_Champions_EFChampionName",
|
|
|
|
name: "FK_EFCharacteristics_Champions_NameChampion",
|
|
|
|
column: x => x.EFChampionName,
|
|
|
|
column: x => x.NameChampion,
|
|
|
|
principalTable: "Champions",
|
|
|
|
principalTable: "Champions",
|
|
|
|
principalColumn: "Name",
|
|
|
|
principalColumn: "Name",
|
|
|
|
onDelete: ReferentialAction.Cascade);
|
|
|
|
onDelete: ReferentialAction.Cascade);
|
|
|
@ -118,9 +116,9 @@ namespace EFlib.Migrations
|
|
|
|
column: "ImageId");
|
|
|
|
column: "ImageId");
|
|
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateIndex(
|
|
|
|
migrationBuilder.CreateIndex(
|
|
|
|
name: "IX_EFCharacteristics_EFChampionName",
|
|
|
|
name: "IX_EFCharacteristics_NameChampion",
|
|
|
|
table: "EFCharacteristics",
|
|
|
|
table: "EFCharacteristics",
|
|
|
|
column: "EFChampionName");
|
|
|
|
column: "NameChampion");
|
|
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateIndex(
|
|
|
|
migrationBuilder.CreateIndex(
|
|
|
|
name: "IX_Skills_EFChampionName",
|
|
|
|
name: "IX_Skills_EFChampionName",
|