using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Bit.SqliteMigrations.Migrations;
///
public partial class DistributedCache : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "Cache",
columns: table => new
{
Id = table.Column(type: "TEXT", maxLength: 449, nullable: false),
Value = table.Column(type: "BLOB", nullable: true),
ExpiresAtTime = table.Column(type: "TEXT", nullable: false),
SlidingExpirationInSeconds = table.Column(type: "INTEGER", nullable: true),
AbsoluteExpiration = table.Column(type: "TEXT", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_Cache", x => x.Id);
});
migrationBuilder.CreateIndex(
name: "IX_Cache_ExpiresAtTime",
table: "Cache",
column: "ExpiresAtTime");
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "Cache");
}
}