1
0
mirror of https://github.com/bitwarden/server.git synced 2024-12-04 14:13:28 +01:00
bitwarden-server/util/PostgresMigrations/Migrations/20211021204521_SetMaxAutoscaleSeatsToCurrentSeatCount.cs

21 lines
639 B
C#
Raw Normal View History

using Bit.Core.Utilities;
using Microsoft.EntityFrameworkCore.Migrations;
2022-08-29 22:06:55 +02:00
namespace Bit.PostgresMigrations.Migrations;
public partial class SetMaxAutoscaleSeatsToCurrentSeatCount : Migration
{
2022-08-29 22:06:55 +02:00
private const string _scriptLocation =
"PostgresMigrations.HelperScripts.2021-10-21_00_SetMaxAutoscaleSeatCount.psql";
2022-08-29 22:06:55 +02:00
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.Sql(CoreHelpers.GetEmbeddedResourceContentsAsync(_scriptLocation));
}
2022-08-29 22:06:55 +02:00
protected override void Down(MigrationBuilder migrationBuilder)
{
throw new Exception("Irreversible migration");
}
}