mirror of
https://github.com/bitwarden/server
synced 2025-12-21 10:43:44 +00:00
fixes
This commit is contained in:
@@ -26,7 +26,7 @@ BEGIN
|
||||
UPDATE
|
||||
[dbo].[Cipher]
|
||||
SET
|
||||
[ArchivedDate] = JSON_MODIFY(
|
||||
[Archives] = JSON_MODIFY(
|
||||
COALESCE([Archives], N'{}'),
|
||||
'$."' + CONVERT(NVARCHAR(36), @UserId) + '"',
|
||||
@UtcNow
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
@DeletedDate DATETIME2(7),
|
||||
@Reprompt TINYINT,
|
||||
@Key VARCHAR(MAX) = NULL,
|
||||
@ArchivedDate DATETIME2(7) = NULL
|
||||
@ArchivedDate DATETIME2(7) = NULL,
|
||||
@Archives NVARCHAR(MAX) = NULL
|
||||
AS
|
||||
BEGIN
|
||||
|
||||
@@ -10,12 +10,18 @@ public partial class AddCipherArchives : Migration
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "Archives",
|
||||
table: "Cipher",
|
||||
type: "longtext",
|
||||
nullable: true);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "Archives",
|
||||
table: "Cipher");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,12 +10,18 @@ public partial class AddCipherArchives : Migration
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "Archives",
|
||||
table: "Cipher",
|
||||
type: "text",
|
||||
nullable: true);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "Archives",
|
||||
table: "Cipher");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,12 +10,18 @@ public partial class AddCipherArchives : Migration
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "Archives",
|
||||
table: "Cipher",
|
||||
type: "TEXT",
|
||||
nullable: true);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "Archives",
|
||||
table: "Cipher");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user