mirror of
https://github.com/bitwarden/server.git
synced 2025-06-30 15:42:48 -05:00
34 lines
910 B
C#
34 lines
910 B
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
namespace Bit.PostgresMigrations.Migrations;
|
|
|
|
public partial class FailedLoginCaptcha : Migration
|
|
{
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "FailedLoginCount",
|
|
table: "User",
|
|
type: "integer",
|
|
nullable: false,
|
|
defaultValue: 0);
|
|
|
|
migrationBuilder.AddColumn<DateTime>(
|
|
name: "LastFailedLoginDate",
|
|
table: "User",
|
|
type: "timestamp without time zone",
|
|
nullable: true);
|
|
}
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "FailedLoginCount",
|
|
table: "User");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "LastFailedLoginDate",
|
|
table: "User");
|
|
}
|
|
}
|