46 lines
1.2 KiB
C#
46 lines
1.2 KiB
C#
using System;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
#pragma warning disable CA1814 // Prefer jagged arrays over multidimensional
|
|
|
|
namespace AccountMangement.Infrastructure.EFCore.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class mappingSubAccountChangeIsActive : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "IsActive",
|
|
table: "SubAccounts",
|
|
type: "nvarchar(5)",
|
|
maxLength: 5,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(1)",
|
|
oldMaxLength: 1);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "IsActive",
|
|
table: "SubAccounts",
|
|
type: "nvarchar(1)",
|
|
maxLength: 1,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(5)",
|
|
oldMaxLength: 5);
|
|
|
|
|
|
}
|
|
}
|
|
}
|