You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
942 B
35 lines
942 B
using Microsoft.EntityFrameworkCore.Migrations; |
|
|
|
#nullable disable |
|
|
|
namespace Bit.PostgresMigrations.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"); |
|
} |
|
}
|
|
|