1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-01 08:02:49 -05:00

[AC-1682] Added MySql migration and script

This commit is contained in:
Rui Tome
2024-03-22 15:58:07 +00:00
parent d6f7d94b22
commit d367f6de6b
4 changed files with 2747 additions and 0 deletions

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,22 @@
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-03-22_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");
}
}
}