mirror of
https://github.com/bitwarden/server.git
synced 2024-12-04 14:13:28 +01:00
22 lines
700 B
C#
22 lines
700 B
C#
|
using Bit.Core.Utilities;
|
|||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|||
|
|
|||
|
#nullable disable
|
|||
|
|
|||
|
namespace Bit.PostgresMigrations.Migrations;
|
|||
|
|
|||
|
public partial class EnableOrgsCollectionEnhancements : Migration
|
|||
|
{
|
|||
|
private const string _enableOrgsCollectionEnhancementsScript = "PostgresMigrations.HelperScripts.2024-04-25_00_EnableOrgsCollectionEnhancements.psql";
|
|||
|
|
|||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|||
|
{
|
|||
|
migrationBuilder.Sql(CoreHelpers.GetEmbeddedResourceContentsAsync(_enableOrgsCollectionEnhancementsScript));
|
|||
|
}
|
|||
|
|
|||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|||
|
{
|
|||
|
throw new Exception("Irreversible migration");
|
|||
|
}
|
|||
|
}
|