forked from elsa-workflows/elsa-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add data compression and format fields to WorkflowInstances
This commit introduces two new fields to the WorkflowInstances table: "DataCompressionAlgorithm" and "DataFormat". These changes allow storing additional contextual information about the payloads of workflow instances and enhance future handling and processing of this data.
- Loading branch information
1 parent
22f7208
commit 383eeab
Showing
22 changed files
with
242 additions
and
149 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 0 additions & 22 deletions
22
src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Management/20240203213856_V3_1.cs
This file was deleted.
Oops, something went wrong.
14 changes: 7 additions & 7 deletions
14
...anagement/20240203213856_V3_1.Designer.cs → ...anagement/20240203224836_V3_1.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
44 changes: 44 additions & 0 deletions
44
src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Management/20240203224836_V3_1.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
using Microsoft.EntityFrameworkCore.Migrations; | ||
|
||
#nullable disable | ||
|
||
namespace Elsa.EntityFrameworkCore.MySql.Migrations.Management | ||
{ | ||
/// <inheritdoc /> | ||
public partial class V31 : Migration | ||
{ | ||
/// <inheritdoc /> | ||
protected override void Up(MigrationBuilder migrationBuilder) | ||
{ | ||
migrationBuilder.AddColumn<string>( | ||
name: "DataCompressionAlgorithm", | ||
schema: "Elsa", | ||
table: "WorkflowInstances", | ||
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 /> | ||
protected override void Down(MigrationBuilder migrationBuilder) | ||
{ | ||
migrationBuilder.DropColumn( | ||
name: "DataCompressionAlgorithm", | ||
schema: "Elsa", | ||
table: "WorkflowInstances"); | ||
|
||
migrationBuilder.DropColumn( | ||
name: "DataFormat", | ||
schema: "Elsa", | ||
table: "WorkflowInstances"); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 0 additions & 22 deletions
22
src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Management/20240203213917_V3_1.cs
This file was deleted.
Oops, something went wrong.
14 changes: 7 additions & 7 deletions
14
...anagement/20240203213917_V3_1.Designer.cs → ...anagement/20240203224851_V3_1.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
42 changes: 42 additions & 0 deletions
42
src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Management/20240203224851_V3_1.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
using Microsoft.EntityFrameworkCore.Migrations; | ||
|
||
#nullable disable | ||
|
||
namespace Elsa.EntityFrameworkCore.PostgreSql.Migrations.Management | ||
{ | ||
/// <inheritdoc /> | ||
public partial class V3_1 : Migration | ||
{ | ||
/// <inheritdoc /> | ||
protected override void Up(MigrationBuilder migrationBuilder) | ||
{ | ||
migrationBuilder.AddColumn<string>( | ||
name: "DataCompressionAlgorithm", | ||
schema: "Elsa", | ||
table: "WorkflowInstances", | ||
type: "text", | ||
nullable: true); | ||
|
||
migrationBuilder.AddColumn<string>( | ||
name: "DataFormat", | ||
schema: "Elsa", | ||
table: "WorkflowInstances", | ||
type: "text", | ||
nullable: true); | ||
} | ||
|
||
/// <inheritdoc /> | ||
protected override void Down(MigrationBuilder migrationBuilder) | ||
{ | ||
migrationBuilder.DropColumn( | ||
name: "DataCompressionAlgorithm", | ||
schema: "Elsa", | ||
table: "WorkflowInstances"); | ||
|
||
migrationBuilder.DropColumn( | ||
name: "DataFormat", | ||
schema: "Elsa", | ||
table: "WorkflowInstances"); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 0 additions & 22 deletions
22
src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Management/20240203213902_V3_1.cs
This file was deleted.
Oops, something went wrong.
14 changes: 7 additions & 7 deletions
14
...anagement/20240203213902_V3_1.Designer.cs → ...anagement/20240203224841_V3_1.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
42 changes: 42 additions & 0 deletions
42
src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Management/20240203224841_V3_1.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
using Microsoft.EntityFrameworkCore.Migrations; | ||
|
||
#nullable disable | ||
|
||
namespace Elsa.EntityFrameworkCore.SqlServer.Migrations.Management | ||
{ | ||
/// <inheritdoc /> | ||
public partial class V3_1 : Migration | ||
{ | ||
/// <inheritdoc /> | ||
protected override void Up(MigrationBuilder migrationBuilder) | ||
{ | ||
migrationBuilder.AddColumn<string>( | ||
name: "DataCompressionAlgorithm", | ||
schema: "Elsa", | ||
table: "WorkflowInstances", | ||
type: "nvarchar(max)", | ||
nullable: true); | ||
|
||
migrationBuilder.AddColumn<string>( | ||
name: "DataFormat", | ||
schema: "Elsa", | ||
table: "WorkflowInstances", | ||
type: "nvarchar(max)", | ||
nullable: true); | ||
} | ||
|
||
/// <inheritdoc /> | ||
protected override void Down(MigrationBuilder migrationBuilder) | ||
{ | ||
migrationBuilder.DropColumn( | ||
name: "DataCompressionAlgorithm", | ||
schema: "Elsa", | ||
table: "WorkflowInstances"); | ||
|
||
migrationBuilder.DropColumn( | ||
name: "DataFormat", | ||
schema: "Elsa", | ||
table: "WorkflowInstances"); | ||
} | ||
} | ||
} |
Oops, something went wrong.