2024-10-03 19:43:54 +02:00
|
|
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
|
|
|
|
|
|
#nullable disable
|
|
|
|
|
|
|
|
|
|
namespace Bit.MySqlMigrations.Migrations;
|
|
|
|
|
|
|
|
|
|
/// <inheritdoc />
|
|
|
|
|
public partial class SyncOrganizationLimitCollectionCreationDeletionColumn : Migration
|
|
|
|
|
{
|
|
|
|
|
/// <inheritdoc />
|
|
|
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
|
|
|
{
|
|
|
|
|
migrationBuilder.Sql(
|
|
|
|
|
@"
|
|
|
|
|
UPDATE Organization
|
|
|
|
|
SET
|
|
|
|
|
LimitCollectionCreation = LimitCollectionCreationDeletion,
|
2024-10-03 20:25:48 +02:00
|
|
|
|
LimitCollectionDeletion = LimitCollectionCreationDeletion;
|
2024-10-03 19:43:54 +02:00
|
|
|
|
");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <inheritdoc />
|
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|