mirror of
https://github.com/TomasiDeveloping/PlayerManagement.git
synced 2026-04-16 17:22:21 +00:00
59 lines
1.8 KiB
C#
59 lines
1.8 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace Database.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class FixAllianceConfiguration : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Name",
|
|
schema: "dbo",
|
|
table: "Alliances",
|
|
type: "nvarchar(200)",
|
|
maxLength: 200,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Abbreviation",
|
|
schema: "dbo",
|
|
table: "Alliances",
|
|
type: "nvarchar(5)",
|
|
maxLength: 5,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Name",
|
|
schema: "dbo",
|
|
table: "Alliances",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(200)",
|
|
oldMaxLength: 200);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Abbreviation",
|
|
schema: "dbo",
|
|
table: "Alliances",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(5)",
|
|
oldMaxLength: 5);
|
|
}
|
|
}
|
|
}
|