1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-28 13:15:12 +01:00
bitwarden-server/util/PostgresMigrations/Migrations/20210920201829_AddMaxAutoscaleSeatsToOrganization.cs

43 lines
1.2 KiB
C#
Raw Permalink Normal View History

using Microsoft.EntityFrameworkCore.Migrations;
2022-08-29 22:06:55 +02:00
namespace Bit.PostgresMigrations.Migrations;
public partial class AddMaxAutoscaleSeatsToOrganization : Migration
{
2022-08-29 22:06:55 +02:00
protected override void Up(MigrationBuilder migrationBuilder)
{
2022-08-29 22:06:55 +02:00
migrationBuilder.AddColumn<int>(
name: "MaxAutoscaleSeats",
table: "Organization",
type: "integer",
nullable: true);
2022-08-29 22:06:55 +02:00
migrationBuilder.AddColumn<DateTime>(
name: "OwnersNotifiedOfAutoscaling",
table: "Organization",
type: "timestamp without time zone",
nullable: true);
2022-08-29 22:06:55 +02:00
migrationBuilder.AddColumn<Guid>(
name: "ProviderOrganizationId",
table: "Event",
type: "uuid",
nullable: true);
}
2022-08-29 22:06:55 +02:00
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "MaxAutoscaleSeats",
table: "Organization");
2022-08-29 22:06:55 +02:00
migrationBuilder.DropColumn(
name: "OwnersNotifiedOfAutoscaling",
table: "Organization");
2022-08-29 22:06:55 +02:00
migrationBuilder.DropColumn(
name: "ProviderOrganizationId",
table: "Event");
}
}