diff --git a/src/modules/Elsa.Persistence.EFCore.Sqlite/Migrations/Alterations/20250222190815_V3_4.cs b/src/modules/Elsa.Persistence.EFCore.Sqlite/Migrations/Alterations/20250222190815_V3_4.cs
index 03c81317a5..400cbd7b95 100644
--- a/src/modules/Elsa.Persistence.EFCore.Sqlite/Migrations/Alterations/20250222190815_V3_4.cs
+++ b/src/modules/Elsa.Persistence.EFCore.Sqlite/Migrations/Alterations/20250222190815_V3_4.cs
@@ -18,32 +18,15 @@ public V3_4(Elsa.Persistence.EFCore.IElsaDbContextSchema schema)
///
protected override void Up(MigrationBuilder migrationBuilder)
{
- migrationBuilder.EnsureSchema(
- name: _schema.Schema);
-
- migrationBuilder.RenameTable(
- name: "AlterationPlans",
- newName: "AlterationPlans",
- newSchema: _schema.Schema);
-
- migrationBuilder.RenameTable(
- name: "AlterationJobs",
- newName: "AlterationJobs",
- newSchema: _schema.Schema);
+ // SQLite does not support schemas.
+ // This migration was attempting to move tables to a schema, which is not needed for SQLite.
+ // No operations required.
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
- migrationBuilder.RenameTable(
- name: "AlterationPlans",
- schema: _schema.Schema,
- newName: "AlterationPlans");
-
- migrationBuilder.RenameTable(
- name: "AlterationJobs",
- schema: _schema.Schema,
- newName: "AlterationJobs");
+ // No operations required.
}
}
}
diff --git a/src/modules/Elsa.Persistence.EFCore.Sqlite/Migrations/Identity/20250222190924_V3_4.cs b/src/modules/Elsa.Persistence.EFCore.Sqlite/Migrations/Identity/20250222190924_V3_4.cs
index 6ccf43d09c..4f3ce89ec7 100644
--- a/src/modules/Elsa.Persistence.EFCore.Sqlite/Migrations/Identity/20250222190924_V3_4.cs
+++ b/src/modules/Elsa.Persistence.EFCore.Sqlite/Migrations/Identity/20250222190924_V3_4.cs
@@ -19,42 +19,15 @@ public V3_4(Elsa.Persistence.EFCore.IElsaDbContextSchema schema)
///
protected override void Up(MigrationBuilder migrationBuilder)
{
- migrationBuilder.EnsureSchema(
- name: _schema.Schema);
-
- migrationBuilder.RenameTable(
- name: "Users",
- newName: "Users",
- newSchema: _schema.Schema);
-
- migrationBuilder.RenameTable(
- name: "Roles",
- newName: "Roles",
- newSchema: _schema.Schema);
-
- migrationBuilder.RenameTable(
- name: "Applications",
- newName: "Applications",
- newSchema: _schema.Schema);
+ // SQLite does not support schemas.
+ // This migration was attempting to move tables to a schema, which is not needed for SQLite.
+ // No operations required.
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
- migrationBuilder.RenameTable(
- name: "Users",
- schema: _schema.Schema,
- newName: "Users");
-
- migrationBuilder.RenameTable(
- name: "Roles",
- schema: _schema.Schema,
- newName: "Roles");
-
- migrationBuilder.RenameTable(
- name: "Applications",
- schema: _schema.Schema,
- newName: "Applications");
+ // No operations required.
}
}
}
diff --git a/src/modules/Elsa.Persistence.EFCore.Sqlite/Migrations/Labels/20250222190951_V3_4.cs b/src/modules/Elsa.Persistence.EFCore.Sqlite/Migrations/Labels/20250222190951_V3_4.cs
index 5ba05b7dc7..4e3afee73a 100644
--- a/src/modules/Elsa.Persistence.EFCore.Sqlite/Migrations/Labels/20250222190951_V3_4.cs
+++ b/src/modules/Elsa.Persistence.EFCore.Sqlite/Migrations/Labels/20250222190951_V3_4.cs
@@ -18,32 +18,15 @@ public V3_4(Elsa.Persistence.EFCore.IElsaDbContextSchema schema)
///
protected override void Up(MigrationBuilder migrationBuilder)
{
- migrationBuilder.EnsureSchema(
- name: _schema.Schema);
-
- migrationBuilder.RenameTable(
- name: "WorkflowDefinitionLabels",
- newName: "WorkflowDefinitionLabels",
- newSchema: _schema.Schema);
-
- migrationBuilder.RenameTable(
- name: "Labels",
- newName: "Labels",
- newSchema: _schema.Schema);
+ // SQLite does not support schemas.
+ // This migration was attempting to move tables to a schema, which is not needed for SQLite.
+ // No operations required.
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
- migrationBuilder.RenameTable(
- name: "WorkflowDefinitionLabels",
- schema: _schema.Schema,
- newName: "WorkflowDefinitionLabels");
-
- migrationBuilder.RenameTable(
- name: "Labels",
- schema: _schema.Schema,
- newName: "Labels");
+ // No operations required.
}
}
}
diff --git a/src/modules/Elsa.Persistence.EFCore.Sqlite/Migrations/Management/20250222190901_V3_4.cs b/src/modules/Elsa.Persistence.EFCore.Sqlite/Migrations/Management/20250222190901_V3_4.cs
index 6acd8f811e..6b05617d08 100644
--- a/src/modules/Elsa.Persistence.EFCore.Sqlite/Migrations/Management/20250222190901_V3_4.cs
+++ b/src/modules/Elsa.Persistence.EFCore.Sqlite/Migrations/Management/20250222190901_V3_4.cs
@@ -18,22 +18,9 @@ public V3_4(Elsa.Persistence.EFCore.IElsaDbContextSchema schema)
///
protected override void Up(MigrationBuilder migrationBuilder)
{
- migrationBuilder.EnsureSchema(
- name: _schema.Schema);
-
- migrationBuilder.RenameTable(
- name: "WorkflowInstances",
- newName: "WorkflowInstances",
- newSchema: _schema.Schema);
-
- migrationBuilder.RenameTable(
- name: "WorkflowDefinitions",
- newName: "WorkflowDefinitions",
- newSchema: _schema.Schema);
-
+ // SQLite does not support schemas, so we only add the column and index without schema qualifiers
migrationBuilder.AddColumn(
name: "IsExecuting",
- schema: _schema.Schema,
table: "WorkflowInstances",
type: "INTEGER",
nullable: false,
@@ -41,7 +28,6 @@ protected override void Up(MigrationBuilder migrationBuilder)
migrationBuilder.CreateIndex(
name: "IX_WorkflowInstance_IsExecuting",
- schema: _schema.Schema,
table: "WorkflowInstances",
column: "IsExecuting");
}
@@ -51,23 +37,11 @@ protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropIndex(
name: "IX_WorkflowInstance_IsExecuting",
- schema: _schema.Schema,
table: "WorkflowInstances");
migrationBuilder.DropColumn(
name: "IsExecuting",
- schema: _schema.Schema,
table: "WorkflowInstances");
-
- migrationBuilder.RenameTable(
- name: "WorkflowInstances",
- schema: _schema.Schema,
- newName: "WorkflowInstances");
-
- migrationBuilder.RenameTable(
- name: "WorkflowDefinitions",
- schema: _schema.Schema,
- newName: "WorkflowDefinitions");
}
}
}
diff --git a/src/modules/Elsa.Persistence.EFCore.Sqlite/Migrations/Management/20251116182711_V3_6.cs b/src/modules/Elsa.Persistence.EFCore.Sqlite/Migrations/Management/20251116182711_V3_6.cs
index 6b2c09cdad..81317294eb 100644
--- a/src/modules/Elsa.Persistence.EFCore.Sqlite/Migrations/Management/20251116182711_V3_6.cs
+++ b/src/modules/Elsa.Persistence.EFCore.Sqlite/Migrations/Management/20251116182711_V3_6.cs
@@ -18,9 +18,9 @@ public V3_6(Elsa.Persistence.EFCore.IElsaDbContextSchema schema)
///
protected override void Up(MigrationBuilder migrationBuilder)
{
+ // SQLite does not support schemas, so we omit the schema parameter
migrationBuilder.AddColumn(
name: "OriginalSource",
- schema: _schema.Schema,
table: "WorkflowDefinitions",
type: "TEXT",
nullable: true);
@@ -31,7 +31,6 @@ protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "OriginalSource",
- schema: _schema.Schema,
table: "WorkflowDefinitions");
}
}
diff --git a/src/modules/Elsa.Persistence.EFCore.Sqlite/Migrations/Runtime/20250222190839_V3_4.cs b/src/modules/Elsa.Persistence.EFCore.Sqlite/Migrations/Runtime/20250222190839_V3_4.cs
index 713a5cc1f8..738e0193d8 100644
--- a/src/modules/Elsa.Persistence.EFCore.Sqlite/Migrations/Runtime/20250222190839_V3_4.cs
+++ b/src/modules/Elsa.Persistence.EFCore.Sqlite/Migrations/Runtime/20250222190839_V3_4.cs
@@ -18,82 +18,15 @@ public V3_4(Elsa.Persistence.EFCore.IElsaDbContextSchema schema)
///
protected override void Up(MigrationBuilder migrationBuilder)
{
- migrationBuilder.EnsureSchema(
- name: _schema.Schema);
-
- migrationBuilder.RenameTable(
- name: "WorkflowInboxMessages",
- newName: "WorkflowInboxMessages",
- newSchema: _schema.Schema);
-
- migrationBuilder.RenameTable(
- name: "WorkflowExecutionLogRecords",
- newName: "WorkflowExecutionLogRecords",
- newSchema: _schema.Schema);
-
- migrationBuilder.RenameTable(
- name: "Triggers",
- newName: "Triggers",
- newSchema: _schema.Schema);
-
- migrationBuilder.RenameTable(
- name: "KeyValuePairs",
- newName: "KeyValuePairs",
- newSchema: _schema.Schema);
-
- migrationBuilder.RenameTable(
- name: "Bookmarks",
- newName: "Bookmarks",
- newSchema: _schema.Schema);
-
- migrationBuilder.RenameTable(
- name: "BookmarkQueueItems",
- newName: "BookmarkQueueItems",
- newSchema: _schema.Schema);
-
- migrationBuilder.RenameTable(
- name: "ActivityExecutionRecords",
- newName: "ActivityExecutionRecords",
- newSchema: _schema.Schema);
+ // SQLite does not support schemas.
+ // This migration was attempting to move tables to a schema, which is not needed for SQLite.
+ // No operations required.
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
- migrationBuilder.RenameTable(
- name: "WorkflowInboxMessages",
- schema: _schema.Schema,
- newName: "WorkflowInboxMessages");
-
- migrationBuilder.RenameTable(
- name: "WorkflowExecutionLogRecords",
- schema: _schema.Schema,
- newName: "WorkflowExecutionLogRecords");
-
- migrationBuilder.RenameTable(
- name: "Triggers",
- schema: _schema.Schema,
- newName: "Triggers");
-
- migrationBuilder.RenameTable(
- name: "KeyValuePairs",
- schema: _schema.Schema,
- newName: "KeyValuePairs");
-
- migrationBuilder.RenameTable(
- name: "Bookmarks",
- schema: _schema.Schema,
- newName: "Bookmarks");
-
- migrationBuilder.RenameTable(
- name: "BookmarkQueueItems",
- schema: _schema.Schema,
- newName: "BookmarkQueueItems");
-
- migrationBuilder.RenameTable(
- name: "ActivityExecutionRecords",
- schema: _schema.Schema,
- newName: "ActivityExecutionRecords");
+ // No operations required.
}
}
}
diff --git a/src/modules/Elsa.Persistence.EFCore.Sqlite/Migrations/Runtime/20250530104854_V3_5.cs b/src/modules/Elsa.Persistence.EFCore.Sqlite/Migrations/Runtime/20250530104854_V3_5.cs
index a543ab9b93..36d3d95203 100644
--- a/src/modules/Elsa.Persistence.EFCore.Sqlite/Migrations/Runtime/20250530104854_V3_5.cs
+++ b/src/modules/Elsa.Persistence.EFCore.Sqlite/Migrations/Runtime/20250530104854_V3_5.cs
@@ -18,9 +18,9 @@ public V3_5(Elsa.Persistence.EFCore.IElsaDbContextSchema schema)
///
protected override void Up(MigrationBuilder migrationBuilder)
{
+ // SQLite does not support schemas, so we omit the schema parameter
migrationBuilder.AlterColumn(
name: "Name",
- schema: _schema.Schema,
table: "Triggers",
type: "TEXT",
nullable: true,
@@ -29,14 +29,12 @@ protected override void Up(MigrationBuilder migrationBuilder)
migrationBuilder.AddColumn(
name: "Name",
- schema: _schema.Schema,
table: "Bookmarks",
type: "TEXT",
nullable: true);
migrationBuilder.AddColumn(
name: "AggregateFaultCount",
- schema: _schema.Schema,
table: "ActivityExecutionRecords",
type: "INTEGER",
nullable: false,
@@ -44,26 +42,22 @@ protected override void Up(MigrationBuilder migrationBuilder)
migrationBuilder.AddColumn(
name: "SerializedMetadata",
- schema: _schema.Schema,
table: "ActivityExecutionRecords",
type: "TEXT",
nullable: true);
migrationBuilder.CreateIndex(
name: "IX_StoredBookmark_Name",
- schema: _schema.Schema,
table: "Bookmarks",
column: "Name");
migrationBuilder.CreateIndex(
name: "IX_StoredBookmark_Name_Hash",
- schema: _schema.Schema,
table: "Bookmarks",
columns: new[] { "Name", "Hash" });
migrationBuilder.CreateIndex(
name: "IX_StoredBookmark_Name_Hash_WorkflowInstanceId",
- schema: _schema.Schema,
table: "Bookmarks",
columns: new[] { "Name", "Hash", "WorkflowInstanceId" });
}
@@ -73,37 +67,30 @@ protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropIndex(
name: "IX_StoredBookmark_Name",
- schema: _schema.Schema,
table: "Bookmarks");
migrationBuilder.DropIndex(
name: "IX_StoredBookmark_Name_Hash",
- schema: _schema.Schema,
table: "Bookmarks");
migrationBuilder.DropIndex(
name: "IX_StoredBookmark_Name_Hash_WorkflowInstanceId",
- schema: _schema.Schema,
table: "Bookmarks");
migrationBuilder.DropColumn(
name: "Name",
- schema: _schema.Schema,
table: "Bookmarks");
migrationBuilder.DropColumn(
name: "AggregateFaultCount",
- schema: _schema.Schema,
table: "ActivityExecutionRecords");
migrationBuilder.DropColumn(
name: "SerializedMetadata",
- schema: _schema.Schema,
table: "ActivityExecutionRecords");
migrationBuilder.AlterColumn(
name: "Name",
- schema: _schema.Schema,
table: "Triggers",
type: "TEXT",
nullable: false,
diff --git a/src/modules/Elsa.Persistence.EFCore.Sqlite/Migrations/Tenants/20250222191016_V3_4.cs b/src/modules/Elsa.Persistence.EFCore.Sqlite/Migrations/Tenants/20250222191016_V3_4.cs
index b1376557cf..5cd41f89f7 100644
--- a/src/modules/Elsa.Persistence.EFCore.Sqlite/Migrations/Tenants/20250222191016_V3_4.cs
+++ b/src/modules/Elsa.Persistence.EFCore.Sqlite/Migrations/Tenants/20250222191016_V3_4.cs
@@ -18,22 +18,15 @@ public V3_4(Elsa.Persistence.EFCore.IElsaDbContextSchema schema)
///
protected override void Up(MigrationBuilder migrationBuilder)
{
- migrationBuilder.EnsureSchema(
- name: _schema.Schema);
-
- migrationBuilder.RenameTable(
- name: "Tenants",
- newName: "Tenants",
- newSchema: _schema.Schema);
+ // SQLite does not support schemas.
+ // This migration was attempting to move tables to a schema, which is not needed for SQLite.
+ // No operations required.
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
- migrationBuilder.RenameTable(
- name: "Tenants",
- schema: _schema.Schema,
- newName: "Tenants");
+ // No operations required.
}
}
}