Remove WorkflowInboxMessages table and associated logic.

This change eliminates the previously defined WorkflowInboxMessages table and its creation logic for all databases. Cleanup simplifies the database schema and maintains focus on essential entities.
This commit is contained in:
Sipke Schoorstra 2025-01-17 08:56:21 +01:00
parent 9043af1726
commit 93aa3a7835

View file

@ -14,7 +14,6 @@ public class V3_3 : Migration
/// <inheritdoc />
public override void Up()
{
Delete.Table("WorkflowInboxMessages");
Alter.Table("Triggers").AddColumn("TenantId").AsString().Nullable();
Alter.Table("Bookmarks").AddColumn("TenantId").AsString().Nullable();
Alter.Table("WorkflowExecutionLogRecords").AddColumn("TenantId").AsString().Nullable();
@ -74,21 +73,6 @@ public class V3_3 : Migration
.WithColumn("ExpiresAt").AsDateTimeOffset().Indexed()
;
IfDatabase("Sqlite")
.Create
.Table("WorkflowInboxMessages")
.WithColumn("Id").AsString().PrimaryKey()
.WithColumn("ActivityTypeName").AsString().NotNullable().Indexed()
.WithColumn("WorkflowInstanceId").AsString().Nullable().Indexed()
.WithColumn("ActivityInstanceId").AsString().Nullable().Indexed()
.WithColumn("CorrelationId").AsString().Nullable().Indexed()
.WithColumn("Hash").AsString().NotNullable().Indexed()
.WithColumn("SerializedBookmarkPayload").AsString(MaxValue)
.WithColumn("SerializedInput").AsString(MaxValue).Nullable()
.WithColumn("CreatedAt").AsDateTime2().Indexed()
.WithColumn("ExpiresAt").AsDateTime2().Indexed()
;
Delete.Table("BookmarkQueueItems");
}
}