2019-05-19 18:35:28 +01:00
|
|
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
|
|
|
2020-02-10 02:10:18 +00:00
|
|
|
|
namespace Marechai.Database.Migrations
|
2019-05-19 18:35:28 +01:00
|
|
|
|
{
|
|
|
|
|
|
public partial class DataAnnotations : Migration
|
|
|
|
|
|
{
|
2020-02-10 22:44:18 +00:00
|
|
|
|
protected override void Up(MigrationBuilder migrationBuilder) =>
|
|
|
|
|
|
migrationBuilder.AlterColumn<string>("Text", "CompanyDescriptions", maxLength: 262144, nullable: false,
|
|
|
|
|
|
oldClrType: typeof(string), oldMaxLength: 262144, oldNullable: true);
|
2019-05-19 18:35:28 +01:00
|
|
|
|
|
2020-02-10 22:44:18 +00:00
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder) =>
|
|
|
|
|
|
migrationBuilder.AlterColumn<string>("Text", "CompanyDescriptions", maxLength: 262144, nullable: true,
|
|
|
|
|
|
oldClrType: typeof(string), oldMaxLength: 262144);
|
2019-05-19 18:35:28 +01:00
|
|
|
|
}
|
2020-02-10 22:44:18 +00:00
|
|
|
|
}
|