using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
#pragma warning disable CA1814 // Prefer jagged arrays over multidimensional
namespace Database.Migrations
{
///
public partial class Change_squad_power_to_decimal : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn(
name: "Power",
schema: "dbo",
table: "Squads",
type: "decimal(18,2)",
precision: 18,
scale: 2,
nullable: false,
oldClrType: typeof(long),
oldType: "bigint");
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn(
name: "Power",
schema: "dbo",
table: "Squads",
type: "bigint",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,2)",
oldPrecision: 18,
oldScale: 2);
}
}
}