mirror of
https://github.com/TomasiDeveloping/PlayerManagement.git
synced 2026-04-16 17:22:21 +00:00
44 lines
1.2 KiB
C#
44 lines
1.2 KiB
C#
using System;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
#pragma warning disable CA1814 // Prefer jagged arrays over multidimensional
|
|
|
|
namespace Database.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class Change_squad_power_to_decimal : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "Power",
|
|
schema: "dbo",
|
|
table: "Squads",
|
|
type: "decimal(18,2)",
|
|
precision: 18,
|
|
scale: 2,
|
|
nullable: false,
|
|
oldClrType: typeof(long),
|
|
oldType: "bigint");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AlterColumn<long>(
|
|
name: "Power",
|
|
schema: "dbo",
|
|
table: "Squads",
|
|
type: "bigint",
|
|
nullable: false,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "decimal(18,2)",
|
|
oldPrecision: 18,
|
|
oldScale: 2);
|
|
}
|
|
}
|
|
}
|