mirror of
https://github.com/Kareadita/Kavita.git
synced 2026-01-17 01:20:22 -05:00
46 lines
1.5 KiB
C#
46 lines
1.5 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace API.Data.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class ReadingSessionIndex : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropIndex(
|
|
name: "IX_AppUserReadingSession_AppUserId",
|
|
table: "AppUserReadingSession");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_AppUserReadingSession_AppUserId_IsActive",
|
|
table: "AppUserReadingSession",
|
|
columns: new[] { "AppUserId", "IsActive" });
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_AppUserReadingSession_IsActive_LastModifiedUtc",
|
|
table: "AppUserReadingSession",
|
|
columns: new[] { "IsActive", "LastModifiedUtc" });
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropIndex(
|
|
name: "IX_AppUserReadingSession_AppUserId_IsActive",
|
|
table: "AppUserReadingSession");
|
|
|
|
migrationBuilder.DropIndex(
|
|
name: "IX_AppUserReadingSession_IsActive_LastModifiedUtc",
|
|
table: "AppUserReadingSession");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_AppUserReadingSession_AppUserId",
|
|
table: "AppUserReadingSession",
|
|
column: "AppUserId");
|
|
}
|
|
}
|
|
}
|