39 lines
1.2 KiB
C#
39 lines
1.2 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
namespace RMuseum.Migrations
|
|
{
|
|
public partial class GanjoorPageFullUrlIndex : Migration
|
|
{
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "FullUrl",
|
|
table: "GanjoorPages",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_GanjoorPages_FullUrl",
|
|
table: "GanjoorPages",
|
|
column: "FullUrl");
|
|
}
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropIndex(
|
|
name: "IX_GanjoorPages_FullUrl",
|
|
table: "GanjoorPages");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "FullUrl",
|
|
table: "GanjoorPages",
|
|
type: "nvarchar(max)",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldNullable: true);
|
|
}
|
|
}
|
|
}
|