1
0
mirror of https://github.com/bitwarden/server.git synced 2024-12-13 15:36:45 +01:00
bitwarden-server/util/SqliteMigrations/Migrations/20230201192604_LastUserDates.cs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

55 lines
1.4 KiB
C#
Raw Normal View History

using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Bit.SqliteMigrations.Migrations;
public partial class LastUserDates : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<DateTime>(
name: "LastEmailChangeDate",
table: "User",
type: "TEXT",
nullable: true);
migrationBuilder.AddColumn<DateTime>(
name: "LastKdfChangeDate",
table: "User",
type: "TEXT",
nullable: true);
migrationBuilder.AddColumn<DateTime>(
name: "LastKeyRotationDate",
table: "User",
type: "TEXT",
nullable: true);
migrationBuilder.AddColumn<DateTime>(
name: "LastPasswordChangeDate",
table: "User",
type: "TEXT",
nullable: true);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "LastEmailChangeDate",
table: "User");
migrationBuilder.DropColumn(
name: "LastKdfChangeDate",
table: "User");
migrationBuilder.DropColumn(
name: "LastKeyRotationDate",
table: "User");
migrationBuilder.DropColumn(
name: "LastPasswordChangeDate",
table: "User");
}
}