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