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