mirror of
https://github.com/bitwarden/server.git
synced 2025-06-30 07:36:14 -05:00
[Reset Password v1] Update DB for Forced Reset (#1467)
* [Reset Password v1] Force Temp Password Changes * Updated EF migrations/scripts * Updating user sprocs with default bit value
This commit is contained in:
1492
util/PostgresMigrations/Migrations/20210716141748_UserForcePasswordReset.Designer.cs
generated
Normal file
1492
util/PostgresMigrations/Migrations/20210716141748_UserForcePasswordReset.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,24 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace Bit.PostgresMigrations.Migrations
|
||||
{
|
||||
public partial class UserForcePasswordReset : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<bool>(
|
||||
name: "ForcePasswordReset",
|
||||
table: "User",
|
||||
type: "boolean",
|
||||
nullable: false,
|
||||
defaultValue: false);
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ForcePasswordReset",
|
||||
table: "User");
|
||||
}
|
||||
}
|
||||
}
|
@ -1049,6 +1049,9 @@ namespace Bit.PostgresMigrations.Migrations
|
||||
b.Property<string>("ExcludedGlobalEquivalentDomains")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<bool>("ForcePasswordReset")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b.Property<byte?>("Gateway")
|
||||
.HasColumnType("smallint");
|
||||
|
||||
|
Reference in New Issue
Block a user