mirror of
https://github.com/Kareadita/Kavita.git
synced 2025-06-20 05:54:15 -04:00
* Removed SecurityEvent middleware solution. It was out of scope originally. * Fixed manage users still calling pending when the api is no more * Added back the online indicator on manage users
41 lines
1.5 KiB
C#
41 lines
1.5 KiB
C#
using System;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace API.Data.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class RemoveSecurityEvent : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropTable(
|
|
name: "SecurityEvent");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.CreateTable(
|
|
name: "SecurityEvent",
|
|
columns: table => new
|
|
{
|
|
Id = table.Column<int>(type: "INTEGER", nullable: false)
|
|
.Annotation("Sqlite:Autoincrement", true),
|
|
CreatedAt = table.Column<DateTime>(type: "TEXT", nullable: false),
|
|
CreatedAtUtc = table.Column<DateTime>(type: "TEXT", nullable: false),
|
|
IpAddress = table.Column<string>(type: "TEXT", nullable: true),
|
|
RequestMethod = table.Column<string>(type: "TEXT", nullable: true),
|
|
RequestPath = table.Column<string>(type: "TEXT", nullable: true),
|
|
UserAgent = table.Column<string>(type: "TEXT", nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_SecurityEvent", x => x.Id);
|
|
});
|
|
}
|
|
}
|
|
}
|