mirror of
https://github.com/claunia/marechai.git
synced 2025-12-16 19:14:25 +00:00
31 lines
927 B
C#
31 lines
927 B
C#
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|||
|
|
|
|||
|
|
namespace Cicm.Database.Migrations
|
|||
|
|
{
|
|||
|
|
public partial class DataAnnotations : Migration
|
|||
|
|
{
|
|||
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|||
|
|
{
|
|||
|
|
migrationBuilder.AlterColumn<string>(
|
|||
|
|
name: "Text",
|
|||
|
|
table: "CompanyDescriptions",
|
|||
|
|
maxLength: 262144,
|
|||
|
|
nullable: false,
|
|||
|
|
oldClrType: typeof(string),
|
|||
|
|
oldMaxLength: 262144,
|
|||
|
|
oldNullable: true);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|||
|
|
{
|
|||
|
|
migrationBuilder.AlterColumn<string>(
|
|||
|
|
name: "Text",
|
|||
|
|
table: "CompanyDescriptions",
|
|||
|
|
maxLength: 262144,
|
|||
|
|
nullable: true,
|
|||
|
|
oldClrType: typeof(string),
|
|||
|
|
oldMaxLength: 262144);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|