using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace SystemRevivalServer.Migrations { /// public partial class CDNFight4 : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "ScenePath", table: "dungeon_mob_definitions"); migrationBuilder.DropColumn( name: "SpriteHeight", table: "dungeon_mob_definitions"); migrationBuilder.DropColumn( name: "SpriteSheet", table: "dungeon_mob_definitions"); migrationBuilder.DropColumn( name: "SpriteWidth", table: "dungeon_mob_definitions"); migrationBuilder.AddColumn( name: "SpriteConfigJson", table: "dungeon_mob_definitions", type: "varchar(4096)", maxLength: 4096, nullable: true) .Annotation("MySql:CharSet", "utf8mb4"); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "SpriteConfigJson", table: "dungeon_mob_definitions"); migrationBuilder.AddColumn( name: "ScenePath", table: "dungeon_mob_definitions", type: "varchar(256)", maxLength: 256, nullable: true) .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( name: "SpriteHeight", table: "dungeon_mob_definitions", type: "int", nullable: false, defaultValue: 0); migrationBuilder.AddColumn( name: "SpriteSheet", table: "dungeon_mob_definitions", type: "varchar(128)", maxLength: 128, nullable: false, defaultValue: "") .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( name: "SpriteWidth", table: "dungeon_mob_definitions", type: "int", nullable: false, defaultValue: 0); } } }