mirror of
https://github.com/bitwarden/server.git
synced 2025-07-02 00:22:50 -05:00
Adding CipherId to the Send table, create/update sprocs, and added migrations
This commit is contained in:
2350
util/PostgresMigrations/Migrations/20240104162650_AddCipherIdToSend.Designer.cs
generated
Normal file
2350
util/PostgresMigrations/Migrations/20240104162650_AddCipherIdToSend.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,27 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace Bit.PostgresMigrations.Migrations;
|
||||
|
||||
/// <inheritdoc />
|
||||
public partial class AddCipherIdToSend : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<Guid>(
|
||||
name: "CipherId",
|
||||
table: "Send",
|
||||
type: "uuid",
|
||||
nullable: true);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "CipherId",
|
||||
table: "Send");
|
||||
}
|
||||
}
|
@ -1125,6 +1125,9 @@ namespace Bit.PostgresMigrations.Migrations
|
||||
b.Property<int>("AccessCount")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<Guid?>("CipherId")
|
||||
.HasColumnType("uuid");
|
||||
|
||||
b.Property<DateTime>("CreationDate")
|
||||
.HasColumnType("timestamp with time zone");
|
||||
|
||||
|
Reference in New Issue
Block a user