Files
server/util/PostgresMigrations/Migrations/20240112123331_FCManagersEditAssignedCollectionUsers.cs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
714 B
C#
Raw Normal View History

2023-12-17 21:28:30 +00:00
using Bit.Core.Utilities;
2023-12-17 21:26:12 +00:00
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
2023-12-17 21:28:30 +00:00
namespace Bit.PostgresMigrations.Migrations;
2023-12-20 11:57:36 +00:00
public partial class FCManagersEditAssignedCollectionUsers : Migration
2023-12-17 21:26:12 +00:00
{
private const string _managersEditAssignedCollectionUsersScript = "PostgresMigrations.HelperScripts.2024-01-12_02_ManagersEditAssignedCollectionUsers.psql";
2023-12-17 21:26:12 +00:00
2023-12-17 21:28:30 +00:00
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.Sql(CoreHelpers.GetEmbeddedResourceContentsAsync(_managersEditAssignedCollectionUsersScript));
}
2023-12-17 21:26:12 +00:00
2023-12-17 21:28:30 +00:00
protected override void Down(MigrationBuilder migrationBuilder)
{
throw new Exception("Irreversible migration");
2023-12-17 21:26:12 +00:00
}
}