54 lines
1.7 KiB
C#
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);
|
|
}
|
|
}
|
|
}
|