Iceshrimp.NET/Iceshrimp.Backend/Core/Database/Migrations/20240224214251_AddOauthTokenAndSessionLastActiveDate.cs

39 lines
1.1 KiB
C#

using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Iceshrimp.Backend.Core.Database.Migrations
{
/// <inheritdoc />
public partial class AddOauthTokenAndSessionLastActiveDate : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<DateTime>(
name: "lastActiveDate",
table: "session",
type: "timestamp with time zone",
nullable: true);
migrationBuilder.AddColumn<DateTime>(
name: "lastActiveDate",
table: "oauth_token",
type: "timestamp with time zone",
nullable: true);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "lastActiveDate",
table: "session");
migrationBuilder.DropColumn(
name: "lastActiveDate",
table: "oauth_token");
}
}
}