You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
1.5 KiB
54 lines
1.5 KiB
using Microsoft.EntityFrameworkCore.Migrations; |
|
|
|
#nullable disable |
|
|
|
namespace Bit.PostgresMigrations.Migrations; |
|
|
|
public partial class LastUserDates : Migration |
|
{ |
|
protected override void Up(MigrationBuilder migrationBuilder) |
|
{ |
|
migrationBuilder.AddColumn<DateTime>( |
|
name: "LastEmailChangeDate", |
|
table: "User", |
|
type: "timestamp with time zone", |
|
nullable: true); |
|
|
|
migrationBuilder.AddColumn<DateTime>( |
|
name: "LastKdfChangeDate", |
|
table: "User", |
|
type: "timestamp with time zone", |
|
nullable: true); |
|
|
|
migrationBuilder.AddColumn<DateTime>( |
|
name: "LastKeyRotationDate", |
|
table: "User", |
|
type: "timestamp with time zone", |
|
nullable: true); |
|
|
|
migrationBuilder.AddColumn<DateTime>( |
|
name: "LastPasswordChangeDate", |
|
table: "User", |
|
type: "timestamp with time zone", |
|
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"); |
|
} |
|
}
|
|
|