mirror of
https://github.com/bitwarden/server.git
synced 2024-11-22 12:15:36 +01:00
37 lines
944 B
C#
37 lines
944 B
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace Bit.MySqlMigrations.Migrations;
|
|
|
|
public partial class SecretsManagerEvent : Migration
|
|
{
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<Guid>(
|
|
name: "SecretId",
|
|
table: "Event",
|
|
type: "char(36)",
|
|
nullable: true,
|
|
collation: "ascii_general_ci");
|
|
|
|
migrationBuilder.AddColumn<Guid>(
|
|
name: "ServiceAccountId",
|
|
table: "Event",
|
|
type: "char(36)",
|
|
nullable: true,
|
|
collation: "ascii_general_ci");
|
|
}
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "SecretId",
|
|
table: "Event");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "ServiceAccountId",
|
|
table: "Event");
|
|
}
|
|
}
|