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