mirror of
https://github.com/bitwarden/server.git
synced 2024-12-05 14:23:30 +01:00
a480bd16e4
* Add missing indexes * Add EF migrations
36 lines
939 B
C#
36 lines
939 B
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace Bit.MySqlMigrations.Migrations;
|
|
|
|
/// <inheritdoc />
|
|
public partial class AddToolsTableIndexes : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_Send_DeletionDate",
|
|
table: "Send",
|
|
column: "DeletionDate");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_Send_UserId_OrganizationId",
|
|
table: "Send",
|
|
columns: new[] { "UserId", "OrganizationId" });
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropIndex(
|
|
name: "IX_Send_DeletionDate",
|
|
table: "Send");
|
|
|
|
migrationBuilder.DropIndex(
|
|
name: "IX_Send_UserId_OrganizationId",
|
|
table: "Send");
|
|
}
|
|
}
|