using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace ODMO.Infrastructure.Migrations { /// public partial class EditEvents : 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: "Type", schema: "Asset", table: "Map", type: "int", nullable: false, defaultValue: 0); migrationBuilder.AddColumn( name: "Rounds", schema: "Config", table: "Events", type: "tinyint", nullable: false, defaultValue: (byte)1); migrationBuilder.AddColumn( name: "Duration", schema: "Config", table: "EventMob", type: "int", nullable: false, defaultValue: 0); migrationBuilder.AddColumn( name: "Round", schema: "Config", table: "EventMob", type: "tinyint", nullable: false, defaultValue: (byte)1); migrationBuilder.UpdateData( schema: "Config", table: "Hash", keyColumn: "Id", keyValue: 1L, column: "CreatedAt", value: new DateTime(2024, 11, 27, 4, 59, 33, 891, DateTimeKind.Local).AddTicks(756)); migrationBuilder.UpdateData( schema: "Routine", table: "Routine", keyColumn: "Id", keyValue: 1L, columns: new[] { "CreatedAt", "NextRunTime" }, values: new object[] { new DateTime(2024, 11, 27, 4, 59, 33, 902, DateTimeKind.Local).AddTicks(3651), new DateTime(2024, 11, 28, 0, 0, 0, 0, DateTimeKind.Local) }); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "Type", schema: "Asset", table: "Map"); migrationBuilder.DropColumn( name: "Rounds", schema: "Config", table: "Events"); migrationBuilder.DropColumn( name: "Duration", schema: "Config", table: "EventMob"); migrationBuilder.DropColumn( name: "Round", schema: "Config", table: "EventMob"); 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, 11, 25, 2, 9, 44, 323, DateTimeKind.Local).AddTicks(8133)); migrationBuilder.UpdateData( schema: "Routine", table: "Routine", keyColumn: "Id", keyValue: 1L, columns: new[] { "CreatedAt", "NextRunTime" }, values: new object[] { new DateTime(2024, 11, 25, 2, 9, 44, 337, DateTimeKind.Local).AddTicks(1554), new DateTime(2024, 11, 26, 0, 0, 0, 0, DateTimeKind.Local) }); } } }