Skip to content

Commit

Permalink
Remove migration files for Management module
Browse files Browse the repository at this point in the history
Deleted all migration files related to the Management module across MySql, SqlServer, Sqlite and PostgreSql data providers. These files included data compression algorithm and data format column additions in the WorkflowInstances table.
  • Loading branch information
sfmskywalker committed Feb 4, 2024
1 parent bc7d52d commit 0bc46d3
Show file tree
Hide file tree
Showing 31 changed files with 1,745 additions and 102 deletions.
2 changes: 1 addition & 1 deletion migrations/efcore-3.1.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env zsh

# Define the modules to update
mods=("Management")
mods=("Management" "Runtime")
# mods=("Alterations" "Runtime" "Management" "Identity" "Labels")

# Define the list of providers
Expand Down
2 changes: 1 addition & 1 deletion src/bundles/Elsa.Server.Web/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
const bool useMassTransit = false;
const bool useMassTransitAzureServiceBus = true;
const bool useMassTransitRabbitMq = false;
const bool useZipCompression = false;
const bool useZipCompression = true;

var builder = WebApplication.CreateBuilder(args);
var services = builder.Services;
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,6 @@ protected override void Up(MigrationBuilder migrationBuilder)
type: "longtext",
nullable: true)
.Annotation("MySql:CharSet", "utf8mb4");

migrationBuilder.AddColumn<string>(
name: "DataFormat",
schema: "Elsa",
table: "WorkflowInstances",
type: "longtext",
nullable: true)
.Annotation("MySql:CharSet", "utf8mb4");
}

/// <inheritdoc />
Expand All @@ -34,11 +26,6 @@ protected override void Down(MigrationBuilder migrationBuilder)
name: "DataCompressionAlgorithm",
schema: "Elsa",
table: "WorkflowInstances");

migrationBuilder.DropColumn(
name: "DataFormat",
schema: "Elsa",
table: "WorkflowInstances");
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,6 @@ protected override void BuildModel(ModelBuilder modelBuilder)
b.Property<string>("DataCompressionAlgorithm")
.HasColumnType("longtext");
b.Property<string>("DataFormat")
.HasColumnType("longtext");
b.Property<string>("DefinitionId")
.IsRequired()
.HasColumnType("varchar(255)");
Expand Down
Loading

0 comments on commit 0bc46d3

Please sign in to comment.