using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace ODMO.Infrastructure.Migrations
{
///
public partial class AlterTamerSkillAssetTable : 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)");
try
{
migrationBuilder.AddColumn(
name: "BuffId",
schema: "Asset",
table: "TamerSkill",
type: "int",
nullable: false,
defaultValue: 0);
migrationBuilder.AddColumn(
name: "Type",
schema: "Asset",
table: "TamerSkill",
type: "int",
nullable: false,
defaultValue: 0);
}
catch (Exception e)
{
Console.WriteLine(e);
}
migrationBuilder.UpdateData(
schema: "Config",
table: "Hash",
keyColumn: "Id",
keyValue: 1L,
column: "CreatedAt",
value: new DateTime(2024, 11, 18, 1, 22, 55, 446, DateTimeKind.Local).AddTicks(5048));
migrationBuilder.UpdateData(
schema: "Routine",
table: "Routine",
keyColumn: "Id",
keyValue: 1L,
columns: new[] { "CreatedAt", "NextRunTime" },
values: new object[] { new DateTime(2024, 11, 18, 1, 22, 55, 452, DateTimeKind.Local).AddTicks(6496), new DateTime(2024, 11, 19, 0, 0, 0, 0, DateTimeKind.Local) });
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "BuffId",
schema: "Asset",
table: "TamerSkill");
migrationBuilder.DropColumn(
name: "Type",
schema: "Asset",
table: "TamerSkill");
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, 2, 4, 32, 54, 240, DateTimeKind.Local).AddTicks(1663));
migrationBuilder.UpdateData(
schema: "Routine",
table: "Routine",
keyColumn: "Id",
keyValue: 1L,
columns: new[] { "CreatedAt", "NextRunTime" },
values: new object[] { new DateTime(2024, 11, 2, 4, 32, 54, 250, DateTimeKind.Local).AddTicks(371), new DateTime(2024, 11, 3, 0, 0, 0, 0, DateTimeKind.Local) });
}
}
}