2019-05-18 17:12:54 +01:00
|
|
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
|
|
|
2020-02-10 02:10:18 +00:00
|
|
|
|
namespace Marechai.Database.Migrations
|
2019-05-18 17:12:54 +01:00
|
|
|
|
{
|
|
|
|
|
|
public partial class AddCompanyDescriptionIndex : Migration
|
|
|
|
|
|
{
|
|
|
|
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
|
|
|
|
{
|
|
|
|
|
|
migrationBuilder.AlterColumn<string>("Text", "CompanyDescriptions", nullable: true,
|
|
|
|
|
|
oldClrType: typeof(string), oldNullable: true);
|
|
|
|
|
|
|
2020-02-10 22:44:18 +00:00
|
|
|
|
migrationBuilder.CreateIndex("IX_CompanyDescriptions_Text", "CompanyDescriptions", "Text").
|
|
|
|
|
|
Annotation("MySql:FullTextIndex", true);
|
2019-05-18 17:12:54 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
|
|
|
|
{
|
|
|
|
|
|
migrationBuilder.DropIndex("IX_CompanyDescriptions_Text", "CompanyDescriptions");
|
|
|
|
|
|
|
|
|
|
|
|
migrationBuilder.AlterColumn<string>("Text", "CompanyDescriptions", nullable: true,
|
|
|
|
|
|
oldClrType: typeof(string), oldNullable: true);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|