mirror of
https://github.com/whoswhip/Sharpbin.git
synced 2026-12-05 18:48:41 +00:00
46 lines
1.2 KiB
C#
46 lines
1.2 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace SharpbinV3.Server.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class IndexSyntaxViewsSize : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_Pastes_Size",
|
|
table: "Pastes",
|
|
column: "Size");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_Pastes_Syntax",
|
|
table: "Pastes",
|
|
column: "Syntax");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_Pastes_Views",
|
|
table: "Pastes",
|
|
column: "Views");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropIndex(
|
|
name: "IX_Pastes_Size",
|
|
table: "Pastes");
|
|
|
|
migrationBuilder.DropIndex(
|
|
name: "IX_Pastes_Syntax",
|
|
table: "Pastes");
|
|
|
|
migrationBuilder.DropIndex(
|
|
name: "IX_Pastes_Views",
|
|
table: "Pastes");
|
|
}
|
|
}
|
|
}
|