using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace Portfolio.Infrastructure.Migrations { /// public partial class updatePokemonAddBerrySkillSleepStyles : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "PokemonType", table: "Pokemons", type: "nvarchar(max)", nullable: false, defaultValue: "", oldClrType: typeof(string), oldType: "nvarchar(max)", oldNullable: true); migrationBuilder.AddColumn( name: "PokemonBerry", table: "Pokemons", type: "nvarchar(max)", nullable: true); migrationBuilder.AddColumn( name: "PokemonSleepStyleImageUrls", table: "Pokemons", type: "nvarchar(max)", nullable: true); migrationBuilder.AddColumn( name: "Skill", table: "Pokemons", type: "nvarchar(max)", nullable: true); migrationBuilder.AddColumn( name: "SkillDescription", table: "Pokemons", type: "nvarchar(max)", nullable: true); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "PokemonBerry", table: "Pokemons"); migrationBuilder.DropColumn( name: "PokemonSleepStyleImageUrls", table: "Pokemons"); migrationBuilder.DropColumn( name: "Skill", table: "Pokemons"); migrationBuilder.DropColumn( name: "SkillDescription", table: "Pokemons"); migrationBuilder.AlterColumn( name: "PokemonType", table: "Pokemons", type: "nvarchar(max)", nullable: true, oldClrType: typeof(string), oldType: "nvarchar(max)"); } } }