mirror of
https://github.com/bitwarden/server.git
synced 2025-04-09 07:08:15 -05:00

* Added the ArchivedDate to cipher entity and response model * Created migration scripts for sqlserver and ef core migration to add the ArchivedDate column * Fixed linting * Fixed syntax * Manually refresh the UserCipherDetailsView
28 lines
687 B
C#
28 lines
687 B
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace Bit.PostgresMigrations.Migrations;
|
|
|
|
/// <inheritdoc />
|
|
public partial class AddArchivedDateToCipher : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<DateTime>(
|
|
name: "ArchivedDate",
|
|
table: "Cipher",
|
|
type: "timestamp with time zone",
|
|
nullable: true);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "ArchivedDate",
|
|
table: "Cipher");
|
|
}
|
|
}
|