1
0
mirror of https://github.com/bitwarden/server.git synced 2025-04-09 07:08:15 -05:00
bitwarden/util/SqliteMigrations/Migrations/20250311152213_AddArchivedDateToCipher.cs
SmithThe4th c00df825f2
[PM-19150] Add ArchivedDate Column to Cipher Table for Archive Vault Items (#5489)
* 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
2025-03-12 11:11:38 -04:00

28 lines
665 B
C#

using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Bit.SqliteMigrations.Migrations;
/// <inheritdoc />
public partial class AddArchivedDateToCipher : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<DateTime>(
name: "ArchivedDate",
table: "Cipher",
type: "TEXT",
nullable: true);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "ArchivedDate",
table: "Cipher");
}
}