2021-10-05 18:12:05 +02:00
|
|
|
|
using System;
|
|
|
|
|
using Bit.Core.Utilities;
|
|
|
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
|
|
|
|
|
|
namespace Bit.MySqlMigrations.Migrations
|
|
|
|
|
{
|
2021-10-11 17:20:21 +02:00
|
|
|
|
public partial class SplitManageCollectionsPermissions2 : Migration
|
2021-10-05 18:12:05 +02:00
|
|
|
|
{
|
|
|
|
|
private const string _scriptLocation =
|
2021-10-11 17:20:21 +02:00
|
|
|
|
"MySqlMigrations.Scripts.2021-09-21_01_SplitManageCollectionsPermission.sql";
|
2021-10-05 18:12:05 +02:00
|
|
|
|
|
|
|
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
|
|
|
{
|
|
|
|
|
migrationBuilder.Sql(CoreHelpers.GetEmbeddedResourceContentsAsync(_scriptLocation));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
|
|
|
{
|
|
|
|
|
throw new Exception("Irreversible migration");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|