mirror of
https://github.com/bitwarden/server.git
synced 2026-02-02 15:13:19 +08:00
28 lines
792 B
C#
28 lines
792 B
C#
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|||
|
|
|
|||
|
|
#nullable disable
|
|||
|
|
|
|||
|
|
namespace Bit.PostgresMigrations.Migrations;
|
|||
|
|
|
|||
|
|
/// <inheritdoc />
|
|||
|
|
public partial class AddingIndexToEvents : Migration
|
|||
|
|
{
|
|||
|
|
/// <inheritdoc />
|
|||
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|||
|
|
{
|
|||
|
|
migrationBuilder.RenameIndex(
|
|||
|
|
name: "IX_Event_Date_OrganizationId_ActingUserId_CipherId",
|
|||
|
|
table: "Event",
|
|||
|
|
newName: "IX_Event_DateOrganizationIdUserId");
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
/// <inheritdoc />
|
|||
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|||
|
|
{
|
|||
|
|
migrationBuilder.RenameIndex(
|
|||
|
|
name: "IX_Event_DateOrganizationIdUserId",
|
|||
|
|
table: "Event",
|
|||
|
|
newName: "IX_Event_Date_OrganizationId_ActingUserId_CipherId");
|
|||
|
|
}
|
|||
|
|
}
|