using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace Bit.MySqlMigrations.Migrations; /// public partial class AddAuthTableIndexes : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateIndex( name: "IX_SsoUser_OrganizationId_ExternalId", table: "SsoUser", columns: new[] { "OrganizationId", "ExternalId" }, unique: true); migrationBuilder.CreateIndex( name: "IX_SsoUser_OrganizationId_UserId", table: "SsoUser", columns: new[] { "OrganizationId", "UserId" }, unique: true); migrationBuilder.CreateIndex( name: "IX_Grant_ExpirationDate", table: "Grant", column: "ExpirationDate"); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropIndex( name: "IX_SsoUser_OrganizationId_ExternalId", table: "SsoUser"); migrationBuilder.DropIndex( name: "IX_SsoUser_OrganizationId_UserId", table: "SsoUser"); migrationBuilder.DropIndex( name: "IX_Grant_ExpirationDate", table: "Grant"); } }