using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace ODMO.Infrastructure.Migrations { /// public partial class UpdateEncyclopedia : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "WOSCD", schema: "Asset", table: "TitleStatus", type: "numeric(38,17)", nullable: false, oldClrType: typeof(decimal), oldType: "numeric(18,0)"); migrationBuilder.AlterColumn( name: "WISCD", schema: "Asset", table: "TitleStatus", type: "numeric(38,17)", nullable: false, oldClrType: typeof(decimal), oldType: "numeric(18,0)"); migrationBuilder.AlterColumn( name: "WASCD", schema: "Asset", table: "TitleStatus", type: "numeric(38,17)", nullable: false, oldClrType: typeof(decimal), oldType: "numeric(18,0)"); migrationBuilder.AlterColumn( name: "THSCD", schema: "Asset", table: "TitleStatus", type: "numeric(38,17)", nullable: false, oldClrType: typeof(decimal), oldType: "numeric(18,0)"); migrationBuilder.AlterColumn( name: "STSCD", schema: "Asset", table: "TitleStatus", type: "numeric(38,17)", nullable: false, oldClrType: typeof(decimal), oldType: "numeric(18,0)"); migrationBuilder.AlterColumn( name: "SCD", schema: "Asset", table: "TitleStatus", type: "numeric(38,17)", nullable: false, oldClrType: typeof(decimal), oldType: "numeric(18,0)"); migrationBuilder.AlterColumn( name: "NESCD", schema: "Asset", table: "TitleStatus", type: "numeric(38,17)", nullable: false, oldClrType: typeof(decimal), oldType: "numeric(18,0)"); migrationBuilder.AlterColumn( name: "LISCD", schema: "Asset", table: "TitleStatus", type: "numeric(38,17)", nullable: false, oldClrType: typeof(decimal), oldType: "numeric(18,0)"); migrationBuilder.AlterColumn( name: "LASCD", schema: "Asset", table: "TitleStatus", type: "numeric(38,17)", nullable: false, oldClrType: typeof(decimal), oldType: "numeric(18,0)"); migrationBuilder.AlterColumn( name: "ICSCD", schema: "Asset", table: "TitleStatus", type: "numeric(38,17)", nullable: false, oldClrType: typeof(decimal), oldType: "numeric(18,0)"); migrationBuilder.AlterColumn( name: "FISCD", schema: "Asset", table: "TitleStatus", type: "numeric(38,17)", nullable: false, oldClrType: typeof(decimal), oldType: "numeric(18,0)"); migrationBuilder.AlterColumn( name: "DASCD", schema: "Asset", table: "TitleStatus", type: "numeric(38,17)", nullable: false, oldClrType: typeof(decimal), oldType: "numeric(18,0)"); migrationBuilder.AddColumn( name: "EnchantAT", schema: "Character", table: "Encyclopedia", type: "int", nullable: false, defaultValue: 0); migrationBuilder.AddColumn( name: "EnchantBL", schema: "Character", table: "Encyclopedia", type: "int", nullable: false, defaultValue: 0); migrationBuilder.AddColumn( name: "EnchantCT", schema: "Character", table: "Encyclopedia", type: "int", nullable: false, defaultValue: 0); migrationBuilder.AddColumn( name: "EnchantEV", schema: "Character", table: "Encyclopedia", type: "int", nullable: false, defaultValue: 0); migrationBuilder.AddColumn( name: "EnchantHP", schema: "Character", table: "Encyclopedia", type: "int", nullable: false, defaultValue: 0); migrationBuilder.AddColumn( name: "Level", schema: "Character", table: "Encyclopedia", type: "int", nullable: false, defaultValue: 1); migrationBuilder.AddColumn( name: "Size", schema: "Character", table: "Encyclopedia", type: "int", nullable: false, defaultValue: 0); migrationBuilder.UpdateData( schema: "Config", table: "Hash", keyColumn: "Id", keyValue: 1L, column: "CreatedAt", value: new DateTime(2024, 10, 24, 0, 21, 10, 729, DateTimeKind.Local).AddTicks(2134)); migrationBuilder.UpdateData( schema: "Routine", table: "Routine", keyColumn: "Id", keyValue: 1L, columns: new[] { "CreatedAt", "NextRunTime" }, values: new object[] { new DateTime(2024, 10, 24, 0, 21, 10, 736, DateTimeKind.Local).AddTicks(3280), new DateTime(2024, 10, 25, 0, 0, 0, 0, DateTimeKind.Local) }); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "EnchantAT", schema: "Character", table: "Encyclopedia"); migrationBuilder.DropColumn( name: "EnchantBL", schema: "Character", table: "Encyclopedia"); migrationBuilder.DropColumn( name: "EnchantCT", schema: "Character", table: "Encyclopedia"); migrationBuilder.DropColumn( name: "EnchantEV", schema: "Character", table: "Encyclopedia"); migrationBuilder.DropColumn( name: "EnchantHP", schema: "Character", table: "Encyclopedia"); migrationBuilder.DropColumn( name: "Level", schema: "Character", table: "Encyclopedia"); migrationBuilder.DropColumn( name: "Size", schema: "Character", table: "Encyclopedia"); migrationBuilder.AlterColumn( name: "WOSCD", schema: "Asset", table: "TitleStatus", type: "numeric(18,0)", nullable: false, oldClrType: typeof(decimal), oldType: "numeric(38,17)"); migrationBuilder.AlterColumn( name: "WISCD", schema: "Asset", table: "TitleStatus", type: "numeric(18,0)", nullable: false, oldClrType: typeof(decimal), oldType: "numeric(38,17)"); migrationBuilder.AlterColumn( name: "WASCD", schema: "Asset", table: "TitleStatus", type: "numeric(18,0)", nullable: false, oldClrType: typeof(decimal), oldType: "numeric(38,17)"); migrationBuilder.AlterColumn( name: "THSCD", schema: "Asset", table: "TitleStatus", type: "numeric(18,0)", nullable: false, oldClrType: typeof(decimal), oldType: "numeric(38,17)"); migrationBuilder.AlterColumn( name: "STSCD", schema: "Asset", table: "TitleStatus", type: "numeric(18,0)", nullable: false, oldClrType: typeof(decimal), oldType: "numeric(38,17)"); migrationBuilder.AlterColumn( name: "SCD", schema: "Asset", table: "TitleStatus", type: "numeric(18,0)", nullable: false, oldClrType: typeof(decimal), oldType: "numeric(38,17)"); migrationBuilder.AlterColumn( name: "NESCD", schema: "Asset", table: "TitleStatus", type: "numeric(18,0)", nullable: false, oldClrType: typeof(decimal), oldType: "numeric(38,17)"); migrationBuilder.AlterColumn( name: "LISCD", schema: "Asset", table: "TitleStatus", type: "numeric(18,0)", nullable: false, oldClrType: typeof(decimal), oldType: "numeric(38,17)"); migrationBuilder.AlterColumn( name: "LASCD", schema: "Asset", table: "TitleStatus", type: "numeric(18,0)", nullable: false, oldClrType: typeof(decimal), oldType: "numeric(38,17)"); migrationBuilder.AlterColumn( name: "ICSCD", schema: "Asset", table: "TitleStatus", type: "numeric(18,0)", nullable: false, oldClrType: typeof(decimal), oldType: "numeric(38,17)"); migrationBuilder.AlterColumn( name: "FISCD", schema: "Asset", table: "TitleStatus", type: "numeric(18,0)", nullable: false, oldClrType: typeof(decimal), oldType: "numeric(38,17)"); migrationBuilder.AlterColumn( name: "DASCD", schema: "Asset", table: "TitleStatus", type: "numeric(18,0)", nullable: false, oldClrType: typeof(decimal), oldType: "numeric(38,17)"); migrationBuilder.UpdateData( schema: "Config", table: "Hash", keyColumn: "Id", keyValue: 1L, column: "CreatedAt", value: new DateTime(2024, 10, 23, 6, 18, 40, 575, DateTimeKind.Local).AddTicks(8653)); migrationBuilder.UpdateData( schema: "Routine", table: "Routine", keyColumn: "Id", keyValue: 1L, columns: new[] { "CreatedAt", "NextRunTime" }, values: new object[] { new DateTime(2024, 10, 23, 6, 18, 40, 581, DateTimeKind.Local).AddTicks(9805), new DateTime(2024, 10, 24, 0, 0, 0, 0, DateTimeKind.Local) }); } } }