Files
Backend-Api/CompanyManagment.EFCore/Migrations/20221111084912_mig111.cs
2024-07-05 21:36:15 +03:30

54 lines
1.7 KiB
C#

using Microsoft.EntityFrameworkCore.Migrations;
namespace CompanyManagment.EFCore.Migrations
{
public partial class mig111 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "Paragraph",
table: "TextManager_TextManager",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(500)",
oldMaxLength: 500);
migrationBuilder.AddColumn<string>(
name: "IsActiveString",
table: "TextManager_Contact",
type: "nvarchar(max)",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "Signature",
table: "TextManager_Contact",
type: "nvarchar(max)",
nullable: true);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "IsActiveString",
table: "TextManager_Contact");
migrationBuilder.DropColumn(
name: "Signature",
table: "TextManager_Contact");
migrationBuilder.AlterColumn<string>(
name: "Paragraph",
table: "TextManager_TextManager",
type: "nvarchar(500)",
maxLength: 500,
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
}
}
}