Skip to content

Commit

Permalink
Generate entity framework migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
addisonbeck committed Sep 28, 2024
1 parent b308fb1 commit e40f956
Show file tree
Hide file tree
Showing 9 changed files with 8,464 additions and 9 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Bit.MySqlMigrations.Migrations;

/// <inheritdoc />
public partial class DropLimitCollectionCreationDeletion : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "LimitCollectionCreationDeletion",
table: "Organization");
}

/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<bool>(
name: "LimitCollectionCreationDeletion",
table: "Organization",
type: "tinyint(1)",
nullable: false,
defaultValue: false);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,6 @@ protected override void BuildModel(ModelBuilder modelBuilder)
b.Property<bool>("LimitCollectionCreation")
.HasColumnType("tinyint(1)");
b.Property<bool>("LimitCollectionCreationDeletion")
.HasColumnType("tinyint(1)");
b.Property<bool>("LimitCollectionDeletion")
.HasColumnType("tinyint(1)");
Expand Down
Loading

0 comments on commit e40f956

Please sign in to comment.