mirror of
https://github.com/bitwarden/server.git
synced 2025-07-12 13:19:01 -05:00
Adding CipherId to the Send table, create/update sprocs, and added migrations
This commit is contained in:
2337
util/MySqlMigrations/Migrations/20240104162658_AddCipherIdToSend.Designer.cs
generated
Normal file
2337
util/MySqlMigrations/Migrations/20240104162658_AddCipherIdToSend.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,28 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace Bit.MySqlMigrations.Migrations;
|
||||
|
||||
/// <inheritdoc />
|
||||
public partial class AddCipherIdToSend : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<Guid>(
|
||||
name: "CipherId",
|
||||
table: "Send",
|
||||
type: "char(36)",
|
||||
nullable: true,
|
||||
collation: "ascii_general_ci");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "CipherId",
|
||||
table: "Send");
|
||||
}
|
||||
}
|
@ -1113,6 +1113,9 @@ namespace Bit.MySqlMigrations.Migrations
|
||||
b.Property<int>("AccessCount")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<Guid?>("CipherId")
|
||||
.HasColumnType("char(36)");
|
||||
|
||||
b.Property<DateTime>("CreationDate")
|
||||
.HasColumnType("datetime(6)");
|
||||
|
||||
|
Reference in New Issue
Block a user