2022-06-30 01:46:41 +02:00
|
|
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
2021-09-23 12:36:08 +02:00
|
|
|
|
|
2022-08-29 21:53:48 +02:00
|
|
|
|
namespace Bit.PostgresMigrations.Migrations
|
2021-09-23 12:36:08 +02:00
|
|
|
|
{
|
2022-08-29 21:53:48 +02:00
|
|
|
|
public partial class AddMaxAutoscaleSeatsToOrganization : Migration
|
2021-09-23 12:36:08 +02:00
|
|
|
|
{
|
2022-08-29 21:53:48 +02:00
|
|
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
|
|
|
{
|
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
|
|
|
name: "MaxAutoscaleSeats",
|
|
|
|
|
table: "Organization",
|
|
|
|
|
type: "integer",
|
|
|
|
|
nullable: true);
|
2021-09-23 12:36:08 +02:00
|
|
|
|
|
2022-08-29 21:53:48 +02:00
|
|
|
|
migrationBuilder.AddColumn<DateTime>(
|
|
|
|
|
name: "OwnersNotifiedOfAutoscaling",
|
|
|
|
|
table: "Organization",
|
|
|
|
|
type: "timestamp without time zone",
|
|
|
|
|
nullable: true);
|
2021-09-23 12:36:08 +02:00
|
|
|
|
|
2022-08-29 21:53:48 +02:00
|
|
|
|
migrationBuilder.AddColumn<Guid>(
|
|
|
|
|
name: "ProviderOrganizationId",
|
|
|
|
|
table: "Event",
|
|
|
|
|
type: "uuid",
|
|
|
|
|
nullable: true);
|
|
|
|
|
}
|
2021-09-23 12:36:08 +02:00
|
|
|
|
|
2022-08-29 21:53:48 +02:00
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
|
|
|
{
|
|
|
|
|
migrationBuilder.DropColumn(
|
|
|
|
|
name: "MaxAutoscaleSeats",
|
|
|
|
|
table: "Organization");
|
2021-09-23 12:36:08 +02:00
|
|
|
|
|
2022-08-29 21:53:48 +02:00
|
|
|
|
migrationBuilder.DropColumn(
|
|
|
|
|
name: "OwnersNotifiedOfAutoscaling",
|
|
|
|
|
table: "Organization");
|
2021-09-23 12:36:08 +02:00
|
|
|
|
|
2022-08-29 21:53:48 +02:00
|
|
|
|
migrationBuilder.DropColumn(
|
|
|
|
|
name: "ProviderOrganizationId",
|
|
|
|
|
table: "Event");
|
|
|
|
|
}
|
2021-09-23 12:36:08 +02:00
|
|
|
|
}
|
|
|
|
|
}
|