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
|
|
|
|
{
|
2024-01-12 12:54:34 +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
|
|
|
|
}
|
|
|
|
|
|
}
|