This commit is contained in:
328p
2026-11-27 15:09:02 +03:00
parent 56adf7e2bb
commit 56f644e08e
41 changed files with 4240 additions and 1 deletions
@@ -0,0 +1,150 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace ConsoleApp1.Migrations
{
/// <inheritdoc />
public partial class checkAll0 : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "pokemon_Attack",
table: "PokemonStats");
migrationBuilder.DropColumn(
name: "pokemon_Defense",
table: "PokemonStats");
migrationBuilder.DropColumn(
name: "pokemon_HP",
table: "PokemonStats");
migrationBuilder.DropColumn(
name: "pokemon_SpecialAttack",
table: "PokemonStats");
migrationBuilder.DropColumn(
name: "pokemon_SpecialDefense",
table: "PokemonStats");
migrationBuilder.DropColumn(
name: "pokemon_Speed",
table: "PokemonStats");
migrationBuilder.AddColumn<int>(
name: "pokemon_Attack",
table: "stat",
type: "integer",
nullable: false,
defaultValue: 0);
migrationBuilder.AddColumn<int>(
name: "pokemon_Defense",
table: "stat",
type: "integer",
nullable: false,
defaultValue: 0);
migrationBuilder.AddColumn<int>(
name: "pokemon_HP",
table: "stat",
type: "integer",
nullable: false,
defaultValue: 0);
migrationBuilder.AddColumn<int>(
name: "pokemon_SpecialAttack",
table: "stat",
type: "integer",
nullable: false,
defaultValue: 0);
migrationBuilder.AddColumn<int>(
name: "pokemon_SpecialDefense",
table: "stat",
type: "integer",
nullable: false,
defaultValue: 0);
migrationBuilder.AddColumn<int>(
name: "pokemon_Speed",
table: "stat",
type: "integer",
nullable: false,
defaultValue: 0);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "pokemon_Attack",
table: "stat");
migrationBuilder.DropColumn(
name: "pokemon_Defense",
table: "stat");
migrationBuilder.DropColumn(
name: "pokemon_HP",
table: "stat");
migrationBuilder.DropColumn(
name: "pokemon_SpecialAttack",
table: "stat");
migrationBuilder.DropColumn(
name: "pokemon_SpecialDefense",
table: "stat");
migrationBuilder.DropColumn(
name: "pokemon_Speed",
table: "stat");
migrationBuilder.AddColumn<int>(
name: "pokemon_Attack",
table: "PokemonStats",
type: "integer",
nullable: false,
defaultValue: 0);
migrationBuilder.AddColumn<int>(
name: "pokemon_Defense",
table: "PokemonStats",
type: "integer",
nullable: false,
defaultValue: 0);
migrationBuilder.AddColumn<int>(
name: "pokemon_HP",
table: "PokemonStats",
type: "integer",
nullable: false,
defaultValue: 0);
migrationBuilder.AddColumn<int>(
name: "pokemon_SpecialAttack",
table: "PokemonStats",
type: "integer",
nullable: false,
defaultValue: 0);
migrationBuilder.AddColumn<int>(
name: "pokemon_SpecialDefense",
table: "PokemonStats",
type: "integer",
nullable: false,
defaultValue: 0);
migrationBuilder.AddColumn<int>(
name: "pokemon_Speed",
table: "PokemonStats",
type: "integer",
nullable: false,
defaultValue: 0);
}
}
}