From 69aacd654b5fee4bf85ad8d8a6cfcfa66321b34b Mon Sep 17 00:00:00 2001 From: Sipke Schoorstra Date: Fri, 29 Mar 2024 21:15:23 +0100 Subject: [PATCH] Regenerate V3.1 EF Core migrations with custom runtime schema support (#5155) * Reset EF Core migrations to 3.0 * Add V3_1 migration altering Status column and SerializableWorkflowInstanceIds This commit adds a new migration file (V3_1) which alters the 'Status' column in the 'AlterationJobs' and 'AlterationPlans' tables to be of type string instead of int. It also renames the 'SerializedWorkflowInstanceIds' to 'SerializedWorkflowInstanceFilter' in the same tables. This update applies across multiple databases (MySQL, SQL Server, SQLite, PostgreSQL). * Remove migration command from efcore-3.1.sh script The Entity Framework Core 3.1 migration command line has been removed from the efcore-3.1.sh script. This modification ensures that migration handling relies solely on the 'ef-migration-runtime-schema' function. --- Elsa.sln | 1 + migrations/README.md | 3 ++ migrations/efcore-3.1.sh | 2 +- ...ner.cs => 20240329200618_V3_1.Designer.cs} | 2 +- ...6133102_V3_1.cs => 20240329200618_V3_1.cs} | 22 ++++++++---- ...ner.cs => 20240329200746_V3_1.Designer.cs} | 2 +- ...6133216_V3_1.cs => 20240329200746_V3_1.cs} | 10 +++++- ...ner.cs => 20240329200817_V3_1.Designer.cs} | 2 +- ...6133247_V3_1.cs => 20240329200817_V3_1.cs} | 10 +++++- ...ner.cs => 20240329200720_V3_1.Designer.cs} | 2 +- ...6133145_V3_1.cs => 20240329200720_V3_1.cs} | 34 ++++++++++++------- ...ner.cs => 20240329200651_V3_1.Designer.cs} | 2 +- ...6133125_V3_1.cs => 20240329200651_V3_1.cs} | 22 ++++++++---- ...ner.cs => 20240329200643_V3_1.Designer.cs} | 2 +- ...6133121_V3_1.cs => 20240329200643_V3_1.cs} | 22 ++++++++---- ...ner.cs => 20240329200810_V3_1.Designer.cs} | 2 +- ...6133242_V3_1.cs => 20240329200810_V3_1.cs} | 10 +++++- ...ner.cs => 20240329200841_V3_1.Designer.cs} | 2 +- ...6133309_V3_1.cs => 20240329200841_V3_1.cs} | 10 +++++- ...ner.cs => 20240329200740_V3_1.Designer.cs} | 2 +- ...6133211_V3_1.cs => 20240329200740_V3_1.cs} | 34 ++++++++++++------- ...ner.cs => 20240329200711_V3_1.Designer.cs} | 2 +- ...6133140_V3_1.cs => 20240329200711_V3_1.cs} | 22 ++++++++---- ...ner.cs => 20240329200626_V3_1.Designer.cs} | 2 +- ...6133111_V3_1.cs => 20240329200626_V3_1.cs} | 22 ++++++++---- ...ner.cs => 20240329200753_V3_1.Designer.cs} | 2 +- ...6133220_V3_1.cs => 20240329200753_V3_1.cs} | 10 +++++- ...ner.cs => 20240329200825_V3_1.Designer.cs} | 2 +- ...6133252_V3_1.cs => 20240329200825_V3_1.cs} | 10 +++++- ...ner.cs => 20240329200727_V3_1.Designer.cs} | 2 +- ...6133156_V3_1.cs => 20240329200727_V3_1.cs} | 34 ++++++++++++------- ...ner.cs => 20240329200657_V3_1.Designer.cs} | 2 +- ...6133130_V3_1.cs => 20240329200657_V3_1.cs} | 22 ++++++++---- ...ner.cs => 20240329200634_V3_1.Designer.cs} | 2 +- ...6133116_V3_1.cs => 20240329200634_V3_1.cs} | 10 +++++- ...ner.cs => 20240329200800_V3_1.Designer.cs} | 2 +- ...6133236_V3_1.cs => 20240329200800_V3_1.cs} | 10 +++++- ...ner.cs => 20240329200834_V3_1.Designer.cs} | 2 +- ...6133257_V3_1.cs => 20240329200834_V3_1.cs} | 10 +++++- ...ner.cs => 20240329200734_V3_1.Designer.cs} | 2 +- ...6133207_V3_1.cs => 20240329200734_V3_1.cs} | 10 +++++- ...ner.cs => 20240329200705_V3_1.Designer.cs} | 2 +- ...6133135_V3_1.cs => 20240329200705_V3_1.cs} | 10 +++++- 43 files changed, 277 insertions(+), 113 deletions(-) create mode 100755 migrations/README.md rename src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Alterations/{20240326133102_V3_1.Designer.cs => 20240329200618_V3_1.Designer.cs} (99%) rename src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Alterations/{20240326133102_V3_1.cs => 20240329200618_V3_1.cs} (79%) rename src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Identity/{20240326133216_V3_1.Designer.cs => 20240329200746_V3_1.Designer.cs} (99%) rename src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Identity/{20240326133216_V3_1.cs => 20240329200746_V3_1.cs} (56%) rename src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Labels/{20240326133247_V3_1.Designer.cs => 20240329200817_V3_1.Designer.cs} (98%) rename src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Labels/{20240326133247_V3_1.cs => 20240329200817_V3_1.cs} (55%) rename src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Management/{20240326133145_V3_1.Designer.cs => 20240329200720_V3_1.Designer.cs} (99%) rename src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Management/{20240326133145_V3_1.cs => 20240329200720_V3_1.cs} (76%) rename src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Runtime/{20240326133125_V3_1.Designer.cs => 20240329200651_V3_1.Designer.cs} (99%) rename src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Runtime/{20240326133125_V3_1.cs => 20240329200651_V3_1.cs} (78%) rename src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Alterations/{20240326133121_V3_1.Designer.cs => 20240329200643_V3_1.Designer.cs} (99%) rename src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Alterations/{20240326133121_V3_1.cs => 20240329200643_V3_1.cs} (77%) rename src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Identity/{20240326133242_V3_1.Designer.cs => 20240329200810_V3_1.Designer.cs} (99%) rename src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Identity/{20240326133242_V3_1.cs => 20240329200810_V3_1.cs} (56%) rename src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Labels/{20240326133309_V3_1.Designer.cs => 20240329200841_V3_1.Designer.cs} (98%) rename src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Labels/{20240326133309_V3_1.cs => 20240329200841_V3_1.cs} (56%) rename src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Management/{20240326133211_V3_1.Designer.cs => 20240329200740_V3_1.Designer.cs} (99%) rename src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Management/{20240326133211_V3_1.cs => 20240329200740_V3_1.cs} (75%) rename src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Runtime/{20240326133140_V3_1.Designer.cs => 20240329200711_V3_1.Designer.cs} (99%) rename src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Runtime/{20240326133140_V3_1.cs => 20240329200711_V3_1.cs} (75%) rename src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Alterations/{20240326133111_V3_1.Designer.cs => 20240329200626_V3_1.Designer.cs} (99%) rename src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Alterations/{20240326133111_V3_1.cs => 20240329200626_V3_1.cs} (77%) rename src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Identity/{20240326133220_V3_1.Designer.cs => 20240329200753_V3_1.Designer.cs} (99%) rename src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Identity/{20240326133220_V3_1.cs => 20240329200753_V3_1.cs} (56%) rename src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Labels/{20240326133252_V3_1.Designer.cs => 20240329200825_V3_1.Designer.cs} (98%) rename src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Labels/{20240326133252_V3_1.cs => 20240329200825_V3_1.cs} (56%) rename src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Management/{20240326133156_V3_1.Designer.cs => 20240329200727_V3_1.Designer.cs} (99%) rename src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Management/{20240326133156_V3_1.cs => 20240329200727_V3_1.cs} (75%) rename src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Runtime/{20240326133130_V3_1.Designer.cs => 20240329200657_V3_1.Designer.cs} (99%) rename src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Runtime/{20240326133130_V3_1.cs => 20240329200657_V3_1.cs} (75%) rename src/modules/Elsa.EntityFrameworkCore.Sqlite/Migrations/Alterations/{20240326133116_V3_1.Designer.cs => 20240329200634_V3_1.Designer.cs} (99%) rename src/modules/Elsa.EntityFrameworkCore.Sqlite/Migrations/Alterations/{20240326133116_V3_1.cs => 20240329200634_V3_1.cs} (85%) rename src/modules/Elsa.EntityFrameworkCore.Sqlite/Migrations/Identity/{20240326133236_V3_1.Designer.cs => 20240329200800_V3_1.Designer.cs} (99%) rename src/modules/Elsa.EntityFrameworkCore.Sqlite/Migrations/Identity/{20240326133236_V3_1.cs => 20240329200800_V3_1.cs} (56%) rename src/modules/Elsa.EntityFrameworkCore.Sqlite/Migrations/Labels/{20240326133257_V3_1.Designer.cs => 20240329200834_V3_1.Designer.cs} (98%) rename src/modules/Elsa.EntityFrameworkCore.Sqlite/Migrations/Labels/{20240326133257_V3_1.cs => 20240329200834_V3_1.cs} (55%) rename src/modules/Elsa.EntityFrameworkCore.Sqlite/Migrations/Management/{20240326133207_V3_1.Designer.cs => 20240329200734_V3_1.Designer.cs} (99%) rename src/modules/Elsa.EntityFrameworkCore.Sqlite/Migrations/Management/{20240326133207_V3_1.cs => 20240329200734_V3_1.cs} (88%) rename src/modules/Elsa.EntityFrameworkCore.Sqlite/Migrations/Runtime/{20240326133135_V3_1.Designer.cs => 20240329200705_V3_1.Designer.cs} (99%) rename src/modules/Elsa.EntityFrameworkCore.Sqlite/Migrations/Runtime/{20240326133135_V3_1.cs => 20240329200705_V3_1.cs} (84%) diff --git a/Elsa.sln b/Elsa.sln index f4db76f04..39c6c6996 100644 --- a/Elsa.sln +++ b/Elsa.sln @@ -317,6 +317,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "migrations", "migrations", migrations\efcore-3.1.sh = migrations\efcore-3.1.sh migrations\efcore-3.0.sh = migrations\efcore-3.0.sh migrations\efcore-3.1-sql.sh = migrations\efcore-3.1-sql.sh + migrations\README.md = migrations\README.md EndProjectSection EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Elsa.Alterations.IntegrationTests", "test\integration\Elsa.Alterations.IntegrationTests\Elsa.Alterations.IntegrationTests.csproj", "{F50336DA-42D1-4DD1-A107-67AFEB8A33EE}" diff --git a/migrations/README.md b/migrations/README.md new file mode 100755 index 000000000..3859b21b4 --- /dev/null +++ b/migrations/README.md @@ -0,0 +1,3 @@ +The `ef-migration-runtime-schema` package provides a runtime schema for the Entity Framework Core migrations. This schema is used to generate the migration scripts for the database. + +https://www.nuget.org/packages/ef-migration-runtime-schema \ No newline at end of file diff --git a/migrations/efcore-3.1.sh b/migrations/efcore-3.1.sh index 82a0a2460..236951e6a 100755 --- a/migrations/efcore-3.1.sh +++ b/migrations/efcore-3.1.sh @@ -16,6 +16,6 @@ for module in "${mods[@]}"; do echo "Updating migrations for $provider..." echo "Provider path: ${providerPath:?}/${migrationsPath}" echo "Migrations path: $migrationsPath" - dotnet ef migrations add V3_1 -c "$module"ElsaDbContext -p "$providerPath" -o "$migrationsPath" + ef-migration-runtime-schema --interface Elsa.EntityFrameworkCore.Common.Contracts.IElsaDbContextSchema --efOptions "migrations add V3_1 -c ""$module""ElsaDbContext -p ""$providerPath"" -o ""$migrationsPath""" done done diff --git a/src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Alterations/20240326133102_V3_1.Designer.cs b/src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Alterations/20240329200618_V3_1.Designer.cs similarity index 99% rename from src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Alterations/20240326133102_V3_1.Designer.cs rename to src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Alterations/20240329200618_V3_1.Designer.cs index d6987a663..df3478e06 100644 --- a/src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Alterations/20240326133102_V3_1.Designer.cs +++ b/src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Alterations/20240329200618_V3_1.Designer.cs @@ -11,7 +11,7 @@ using Microsoft.EntityFrameworkCore.Storage.ValueConversion; namespace Elsa.EntityFrameworkCore.MySql.Migrations.Alterations { [DbContext(typeof(AlterationsElsaDbContext))] - [Migration("20240326133102_V3_1")] + [Migration("20240329200618_V3_1")] partial class V3_1 { /// diff --git a/src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Alterations/20240326133102_V3_1.cs b/src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Alterations/20240329200618_V3_1.cs similarity index 79% rename from src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Alterations/20240326133102_V3_1.cs rename to src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Alterations/20240329200618_V3_1.cs index 2033ffc86..8130b0bec 100644 --- a/src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Alterations/20240326133102_V3_1.cs +++ b/src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Alterations/20240329200618_V3_1.cs @@ -1,4 +1,4 @@ -using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Migrations; #nullable disable @@ -7,18 +7,26 @@ namespace Elsa.EntityFrameworkCore.MySql.Migrations.Alterations /// public partial class V3_1 : Migration { + private readonly Elsa.EntityFrameworkCore.Common.Contracts.IElsaDbContextSchema _schema; + + /// + public V3_1(Elsa.EntityFrameworkCore.Common.Contracts.IElsaDbContextSchema schema) + { + _schema = schema; + } + /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.RenameColumn( name: "SerializedWorkflowInstanceIds", - schema: "Elsa", + schema: _schema.Schema, table: "AlterationPlans", newName: "SerializedWorkflowInstanceFilter"); migrationBuilder.AlterColumn( name: "Status", - schema: "Elsa", + schema: _schema.Schema, table: "AlterationPlans", type: "varchar(255)", nullable: false, @@ -28,7 +36,7 @@ namespace Elsa.EntityFrameworkCore.MySql.Migrations.Alterations migrationBuilder.AlterColumn( name: "Status", - schema: "Elsa", + schema: _schema.Schema, table: "AlterationJobs", type: "varchar(255)", nullable: false, @@ -42,13 +50,13 @@ namespace Elsa.EntityFrameworkCore.MySql.Migrations.Alterations { migrationBuilder.RenameColumn( name: "SerializedWorkflowInstanceFilter", - schema: "Elsa", + schema: _schema.Schema, table: "AlterationPlans", newName: "SerializedWorkflowInstanceIds"); migrationBuilder.AlterColumn( name: "Status", - schema: "Elsa", + schema: _schema.Schema, table: "AlterationPlans", type: "int", nullable: false, @@ -58,7 +66,7 @@ namespace Elsa.EntityFrameworkCore.MySql.Migrations.Alterations migrationBuilder.AlterColumn( name: "Status", - schema: "Elsa", + schema: _schema.Schema, table: "AlterationJobs", type: "int", nullable: false, diff --git a/src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Identity/20240326133216_V3_1.Designer.cs b/src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Identity/20240329200746_V3_1.Designer.cs similarity index 99% rename from src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Identity/20240326133216_V3_1.Designer.cs rename to src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Identity/20240329200746_V3_1.Designer.cs index 8364b3a66..faaf23789 100644 --- a/src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Identity/20240326133216_V3_1.Designer.cs +++ b/src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Identity/20240329200746_V3_1.Designer.cs @@ -10,7 +10,7 @@ using Microsoft.EntityFrameworkCore.Storage.ValueConversion; namespace Elsa.EntityFrameworkCore.MySql.Migrations.Identity { [DbContext(typeof(IdentityElsaDbContext))] - [Migration("20240326133216_V3_1")] + [Migration("20240329200746_V3_1")] partial class V3_1 { /// diff --git a/src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Identity/20240326133216_V3_1.cs b/src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Identity/20240329200746_V3_1.cs similarity index 56% rename from src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Identity/20240326133216_V3_1.cs rename to src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Identity/20240329200746_V3_1.cs index 0ac0970a1..d5692b547 100644 --- a/src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Identity/20240326133216_V3_1.cs +++ b/src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Identity/20240329200746_V3_1.cs @@ -1,4 +1,4 @@ -using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Migrations; #nullable disable @@ -7,6 +7,14 @@ namespace Elsa.EntityFrameworkCore.MySql.Migrations.Identity /// public partial class V3_1 : Migration { + private readonly Elsa.EntityFrameworkCore.Common.Contracts.IElsaDbContextSchema _schema; + + /// + public V3_1(Elsa.EntityFrameworkCore.Common.Contracts.IElsaDbContextSchema schema) + { + _schema = schema; + } + /// protected override void Up(MigrationBuilder migrationBuilder) { diff --git a/src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Labels/20240326133247_V3_1.Designer.cs b/src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Labels/20240329200817_V3_1.Designer.cs similarity index 98% rename from src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Labels/20240326133247_V3_1.Designer.cs rename to src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Labels/20240329200817_V3_1.Designer.cs index 1eba53ada..d1b0b49ce 100644 --- a/src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Labels/20240326133247_V3_1.Designer.cs +++ b/src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Labels/20240329200817_V3_1.Designer.cs @@ -10,7 +10,7 @@ using Microsoft.EntityFrameworkCore.Storage.ValueConversion; namespace Elsa.EntityFrameworkCore.MySql.Migrations.Labels { [DbContext(typeof(LabelsElsaDbContext))] - [Migration("20240326133247_V3_1")] + [Migration("20240329200817_V3_1")] partial class V3_1 { /// diff --git a/src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Labels/20240326133247_V3_1.cs b/src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Labels/20240329200817_V3_1.cs similarity index 55% rename from src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Labels/20240326133247_V3_1.cs rename to src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Labels/20240329200817_V3_1.cs index 552fab200..468bec8e8 100644 --- a/src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Labels/20240326133247_V3_1.cs +++ b/src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Labels/20240329200817_V3_1.cs @@ -1,4 +1,4 @@ -using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Migrations; #nullable disable @@ -7,6 +7,14 @@ namespace Elsa.EntityFrameworkCore.MySql.Migrations.Labels /// public partial class V3_1 : Migration { + private readonly Elsa.EntityFrameworkCore.Common.Contracts.IElsaDbContextSchema _schema; + + /// + public V3_1(Elsa.EntityFrameworkCore.Common.Contracts.IElsaDbContextSchema schema) + { + _schema = schema; + } + /// protected override void Up(MigrationBuilder migrationBuilder) { diff --git a/src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Management/20240326133145_V3_1.Designer.cs b/src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Management/20240329200720_V3_1.Designer.cs similarity index 99% rename from src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Management/20240326133145_V3_1.Designer.cs rename to src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Management/20240329200720_V3_1.Designer.cs index 17f5e541c..0828c2c2f 100644 --- a/src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Management/20240326133145_V3_1.Designer.cs +++ b/src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Management/20240329200720_V3_1.Designer.cs @@ -11,7 +11,7 @@ using Microsoft.EntityFrameworkCore.Storage.ValueConversion; namespace Elsa.EntityFrameworkCore.MySql.Migrations.Management { [DbContext(typeof(ManagementElsaDbContext))] - [Migration("20240326133145_V3_1")] + [Migration("20240329200720_V3_1")] partial class V3_1 { /// diff --git a/src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Management/20240326133145_V3_1.cs b/src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Management/20240329200720_V3_1.cs similarity index 76% rename from src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Management/20240326133145_V3_1.cs rename to src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Management/20240329200720_V3_1.cs index 1f482029a..dc38619be 100644 --- a/src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Management/20240326133145_V3_1.cs +++ b/src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Management/20240329200720_V3_1.cs @@ -1,4 +1,4 @@ -using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Migrations; #nullable disable @@ -7,12 +7,20 @@ namespace Elsa.EntityFrameworkCore.MySql.Migrations.Management /// public partial class V3_1 : Migration { + private readonly Elsa.EntityFrameworkCore.Common.Contracts.IElsaDbContextSchema _schema; + + /// + public V3_1(Elsa.EntityFrameworkCore.Common.Contracts.IElsaDbContextSchema schema) + { + _schema = schema; + } + /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn( name: "DataCompressionAlgorithm", - schema: "Elsa", + schema: _schema.Schema, table: "WorkflowInstances", type: "longtext", nullable: true) @@ -20,7 +28,7 @@ namespace Elsa.EntityFrameworkCore.MySql.Migrations.Management migrationBuilder.AddColumn( name: "IsSystem", - schema: "Elsa", + schema: _schema.Schema, table: "WorkflowInstances", type: "tinyint(1)", nullable: false, @@ -28,7 +36,7 @@ namespace Elsa.EntityFrameworkCore.MySql.Migrations.Management migrationBuilder.AddColumn( name: "ParentWorkflowInstanceId", - schema: "Elsa", + schema: _schema.Schema, table: "WorkflowInstances", type: "longtext", nullable: true) @@ -36,7 +44,7 @@ namespace Elsa.EntityFrameworkCore.MySql.Migrations.Management migrationBuilder.AddColumn( name: "IsSystem", - schema: "Elsa", + schema: _schema.Schema, table: "WorkflowDefinitions", type: "tinyint(1)", nullable: false, @@ -44,13 +52,13 @@ namespace Elsa.EntityFrameworkCore.MySql.Migrations.Management migrationBuilder.CreateIndex( name: "IX_WorkflowInstance_IsSystem", - schema: "Elsa", + schema: _schema.Schema, table: "WorkflowInstances", column: "IsSystem"); migrationBuilder.CreateIndex( name: "IX_WorkflowDefinition_IsSystem", - schema: "Elsa", + schema: _schema.Schema, table: "WorkflowDefinitions", column: "IsSystem"); } @@ -60,32 +68,32 @@ namespace Elsa.EntityFrameworkCore.MySql.Migrations.Management { migrationBuilder.DropIndex( name: "IX_WorkflowInstance_IsSystem", - schema: "Elsa", + schema: _schema.Schema, table: "WorkflowInstances"); migrationBuilder.DropIndex( name: "IX_WorkflowDefinition_IsSystem", - schema: "Elsa", + schema: _schema.Schema, table: "WorkflowDefinitions"); migrationBuilder.DropColumn( name: "DataCompressionAlgorithm", - schema: "Elsa", + schema: _schema.Schema, table: "WorkflowInstances"); migrationBuilder.DropColumn( name: "IsSystem", - schema: "Elsa", + schema: _schema.Schema, table: "WorkflowInstances"); migrationBuilder.DropColumn( name: "ParentWorkflowInstanceId", - schema: "Elsa", + schema: _schema.Schema, table: "WorkflowInstances"); migrationBuilder.DropColumn( name: "IsSystem", - schema: "Elsa", + schema: _schema.Schema, table: "WorkflowDefinitions"); } } diff --git a/src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Runtime/20240326133125_V3_1.Designer.cs b/src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Runtime/20240329200651_V3_1.Designer.cs similarity index 99% rename from src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Runtime/20240326133125_V3_1.Designer.cs rename to src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Runtime/20240329200651_V3_1.Designer.cs index 60f3991e9..128d958ff 100644 --- a/src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Runtime/20240326133125_V3_1.Designer.cs +++ b/src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Runtime/20240329200651_V3_1.Designer.cs @@ -11,7 +11,7 @@ using Microsoft.EntityFrameworkCore.Storage.ValueConversion; namespace Elsa.EntityFrameworkCore.MySql.Migrations.Runtime { [DbContext(typeof(RuntimeElsaDbContext))] - [Migration("20240326133125_V3_1")] + [Migration("20240329200651_V3_1")] partial class V3_1 { /// diff --git a/src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Runtime/20240326133125_V3_1.cs b/src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Runtime/20240329200651_V3_1.cs similarity index 78% rename from src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Runtime/20240326133125_V3_1.cs rename to src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Runtime/20240329200651_V3_1.cs index 455ba1e0d..106ae7acf 100644 --- a/src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Runtime/20240326133125_V3_1.cs +++ b/src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Runtime/20240329200651_V3_1.cs @@ -1,4 +1,4 @@ -using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Migrations; #nullable disable @@ -7,12 +7,20 @@ namespace Elsa.EntityFrameworkCore.MySql.Migrations.Runtime /// public partial class V3_1 : Migration { + private readonly Elsa.EntityFrameworkCore.Common.Contracts.IElsaDbContextSchema _schema; + + /// + public V3_1(Elsa.EntityFrameworkCore.Common.Contracts.IElsaDbContextSchema schema) + { + _schema = schema; + } + /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn( name: "SerializedActivityStateCompressionAlgorithm", - schema: "Elsa", + schema: _schema.Schema, table: "ActivityExecutionRecords", type: "longtext", nullable: true) @@ -20,7 +28,7 @@ namespace Elsa.EntityFrameworkCore.MySql.Migrations.Runtime migrationBuilder.AddColumn( name: "SerializedProperties", - schema: "Elsa", + schema: _schema.Schema, table: "ActivityExecutionRecords", type: "longtext", nullable: true) @@ -28,7 +36,7 @@ namespace Elsa.EntityFrameworkCore.MySql.Migrations.Runtime migrationBuilder.CreateTable( name: "KeyValuePairs", - schema: "Elsa", + schema: _schema.Schema, columns: table => new { Key = table.Column(type: "varchar(255)", nullable: false) @@ -48,16 +56,16 @@ namespace Elsa.EntityFrameworkCore.MySql.Migrations.Runtime { migrationBuilder.DropTable( name: "KeyValuePairs", - schema: "Elsa"); + schema: _schema.Schema); migrationBuilder.DropColumn( name: "SerializedActivityStateCompressionAlgorithm", - schema: "Elsa", + schema: _schema.Schema, table: "ActivityExecutionRecords"); migrationBuilder.DropColumn( name: "SerializedProperties", - schema: "Elsa", + schema: _schema.Schema, table: "ActivityExecutionRecords"); } } diff --git a/src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Alterations/20240326133121_V3_1.Designer.cs b/src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Alterations/20240329200643_V3_1.Designer.cs similarity index 99% rename from src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Alterations/20240326133121_V3_1.Designer.cs rename to src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Alterations/20240329200643_V3_1.Designer.cs index deece2c16..337987fe2 100644 --- a/src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Alterations/20240326133121_V3_1.Designer.cs +++ b/src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Alterations/20240329200643_V3_1.Designer.cs @@ -12,7 +12,7 @@ using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; namespace Elsa.EntityFrameworkCore.PostgreSql.Migrations.Alterations { [DbContext(typeof(AlterationsElsaDbContext))] - [Migration("20240326133121_V3_1")] + [Migration("20240329200643_V3_1")] partial class V3_1 { /// diff --git a/src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Alterations/20240326133121_V3_1.cs b/src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Alterations/20240329200643_V3_1.cs similarity index 77% rename from src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Alterations/20240326133121_V3_1.cs rename to src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Alterations/20240329200643_V3_1.cs index f1e46b294..5ef51d428 100644 --- a/src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Alterations/20240326133121_V3_1.cs +++ b/src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Alterations/20240329200643_V3_1.cs @@ -1,4 +1,4 @@ -using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Migrations; #nullable disable @@ -7,18 +7,26 @@ namespace Elsa.EntityFrameworkCore.PostgreSql.Migrations.Alterations /// public partial class V3_1 : Migration { + private readonly Elsa.EntityFrameworkCore.Common.Contracts.IElsaDbContextSchema _schema; + + /// + public V3_1(Elsa.EntityFrameworkCore.Common.Contracts.IElsaDbContextSchema schema) + { + _schema = schema; + } + /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.RenameColumn( name: "SerializedWorkflowInstanceIds", - schema: "Elsa", + schema: _schema.Schema, table: "AlterationPlans", newName: "SerializedWorkflowInstanceFilter"); migrationBuilder.AlterColumn( name: "Status", - schema: "Elsa", + schema: _schema.Schema, table: "AlterationPlans", type: "text", nullable: false, @@ -27,7 +35,7 @@ namespace Elsa.EntityFrameworkCore.PostgreSql.Migrations.Alterations migrationBuilder.AlterColumn( name: "Status", - schema: "Elsa", + schema: _schema.Schema, table: "AlterationJobs", type: "text", nullable: false, @@ -40,13 +48,13 @@ namespace Elsa.EntityFrameworkCore.PostgreSql.Migrations.Alterations { migrationBuilder.RenameColumn( name: "SerializedWorkflowInstanceFilter", - schema: "Elsa", + schema: _schema.Schema, table: "AlterationPlans", newName: "SerializedWorkflowInstanceIds"); migrationBuilder.AlterColumn( name: "Status", - schema: "Elsa", + schema: _schema.Schema, table: "AlterationPlans", type: "integer", nullable: false, @@ -55,7 +63,7 @@ namespace Elsa.EntityFrameworkCore.PostgreSql.Migrations.Alterations migrationBuilder.AlterColumn( name: "Status", - schema: "Elsa", + schema: _schema.Schema, table: "AlterationJobs", type: "integer", nullable: false, diff --git a/src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Identity/20240326133242_V3_1.Designer.cs b/src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Identity/20240329200810_V3_1.Designer.cs similarity index 99% rename from src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Identity/20240326133242_V3_1.Designer.cs rename to src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Identity/20240329200810_V3_1.Designer.cs index 3882da36c..d287259bc 100644 --- a/src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Identity/20240326133242_V3_1.Designer.cs +++ b/src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Identity/20240329200810_V3_1.Designer.cs @@ -11,7 +11,7 @@ using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; namespace Elsa.EntityFrameworkCore.PostgreSql.Migrations.Identity { [DbContext(typeof(IdentityElsaDbContext))] - [Migration("20240326133242_V3_1")] + [Migration("20240329200810_V3_1")] partial class V3_1 { /// diff --git a/src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Identity/20240326133242_V3_1.cs b/src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Identity/20240329200810_V3_1.cs similarity index 56% rename from src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Identity/20240326133242_V3_1.cs rename to src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Identity/20240329200810_V3_1.cs index 5e2f18d36..bfa838bff 100644 --- a/src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Identity/20240326133242_V3_1.cs +++ b/src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Identity/20240329200810_V3_1.cs @@ -1,4 +1,4 @@ -using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Migrations; #nullable disable @@ -7,6 +7,14 @@ namespace Elsa.EntityFrameworkCore.PostgreSql.Migrations.Identity /// public partial class V3_1 : Migration { + private readonly Elsa.EntityFrameworkCore.Common.Contracts.IElsaDbContextSchema _schema; + + /// + public V3_1(Elsa.EntityFrameworkCore.Common.Contracts.IElsaDbContextSchema schema) + { + _schema = schema; + } + /// protected override void Up(MigrationBuilder migrationBuilder) { diff --git a/src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Labels/20240326133309_V3_1.Designer.cs b/src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Labels/20240329200841_V3_1.Designer.cs similarity index 98% rename from src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Labels/20240326133309_V3_1.Designer.cs rename to src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Labels/20240329200841_V3_1.Designer.cs index aa0e4bb2e..4d06c6a81 100644 --- a/src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Labels/20240326133309_V3_1.Designer.cs +++ b/src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Labels/20240329200841_V3_1.Designer.cs @@ -11,7 +11,7 @@ using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; namespace Elsa.EntityFrameworkCore.PostgreSql.Migrations.Labels { [DbContext(typeof(LabelsElsaDbContext))] - [Migration("20240326133309_V3_1")] + [Migration("20240329200841_V3_1")] partial class V3_1 { /// diff --git a/src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Labels/20240326133309_V3_1.cs b/src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Labels/20240329200841_V3_1.cs similarity index 56% rename from src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Labels/20240326133309_V3_1.cs rename to src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Labels/20240329200841_V3_1.cs index 7267e79e4..1cdd40aea 100644 --- a/src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Labels/20240326133309_V3_1.cs +++ b/src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Labels/20240329200841_V3_1.cs @@ -1,4 +1,4 @@ -using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Migrations; #nullable disable @@ -7,6 +7,14 @@ namespace Elsa.EntityFrameworkCore.PostgreSql.Migrations.Labels /// public partial class V3_1 : Migration { + private readonly Elsa.EntityFrameworkCore.Common.Contracts.IElsaDbContextSchema _schema; + + /// + public V3_1(Elsa.EntityFrameworkCore.Common.Contracts.IElsaDbContextSchema schema) + { + _schema = schema; + } + /// protected override void Up(MigrationBuilder migrationBuilder) { diff --git a/src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Management/20240326133211_V3_1.Designer.cs b/src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Management/20240329200740_V3_1.Designer.cs similarity index 99% rename from src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Management/20240326133211_V3_1.Designer.cs rename to src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Management/20240329200740_V3_1.Designer.cs index 52263e776..2aee77f54 100644 --- a/src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Management/20240326133211_V3_1.Designer.cs +++ b/src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Management/20240329200740_V3_1.Designer.cs @@ -12,7 +12,7 @@ using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; namespace Elsa.EntityFrameworkCore.PostgreSql.Migrations.Management { [DbContext(typeof(ManagementElsaDbContext))] - [Migration("20240326133211_V3_1")] + [Migration("20240329200740_V3_1")] partial class V3_1 { /// diff --git a/src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Management/20240326133211_V3_1.cs b/src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Management/20240329200740_V3_1.cs similarity index 75% rename from src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Management/20240326133211_V3_1.cs rename to src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Management/20240329200740_V3_1.cs index d0e20c7ff..19a90113d 100644 --- a/src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Management/20240326133211_V3_1.cs +++ b/src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Management/20240329200740_V3_1.cs @@ -1,4 +1,4 @@ -using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Migrations; #nullable disable @@ -7,19 +7,27 @@ namespace Elsa.EntityFrameworkCore.PostgreSql.Migrations.Management /// public partial class V3_1 : Migration { + private readonly Elsa.EntityFrameworkCore.Common.Contracts.IElsaDbContextSchema _schema; + + /// + public V3_1(Elsa.EntityFrameworkCore.Common.Contracts.IElsaDbContextSchema schema) + { + _schema = schema; + } + /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn( name: "DataCompressionAlgorithm", - schema: "Elsa", + schema: _schema.Schema, table: "WorkflowInstances", type: "text", nullable: true); migrationBuilder.AddColumn( name: "IsSystem", - schema: "Elsa", + schema: _schema.Schema, table: "WorkflowInstances", type: "boolean", nullable: false, @@ -27,14 +35,14 @@ namespace Elsa.EntityFrameworkCore.PostgreSql.Migrations.Management migrationBuilder.AddColumn( name: "ParentWorkflowInstanceId", - schema: "Elsa", + schema: _schema.Schema, table: "WorkflowInstances", type: "text", nullable: true); migrationBuilder.AddColumn( name: "IsSystem", - schema: "Elsa", + schema: _schema.Schema, table: "WorkflowDefinitions", type: "boolean", nullable: false, @@ -42,13 +50,13 @@ namespace Elsa.EntityFrameworkCore.PostgreSql.Migrations.Management migrationBuilder.CreateIndex( name: "IX_WorkflowInstance_IsSystem", - schema: "Elsa", + schema: _schema.Schema, table: "WorkflowInstances", column: "IsSystem"); migrationBuilder.CreateIndex( name: "IX_WorkflowDefinition_IsSystem", - schema: "Elsa", + schema: _schema.Schema, table: "WorkflowDefinitions", column: "IsSystem"); } @@ -58,32 +66,32 @@ namespace Elsa.EntityFrameworkCore.PostgreSql.Migrations.Management { migrationBuilder.DropIndex( name: "IX_WorkflowInstance_IsSystem", - schema: "Elsa", + schema: _schema.Schema, table: "WorkflowInstances"); migrationBuilder.DropIndex( name: "IX_WorkflowDefinition_IsSystem", - schema: "Elsa", + schema: _schema.Schema, table: "WorkflowDefinitions"); migrationBuilder.DropColumn( name: "DataCompressionAlgorithm", - schema: "Elsa", + schema: _schema.Schema, table: "WorkflowInstances"); migrationBuilder.DropColumn( name: "IsSystem", - schema: "Elsa", + schema: _schema.Schema, table: "WorkflowInstances"); migrationBuilder.DropColumn( name: "ParentWorkflowInstanceId", - schema: "Elsa", + schema: _schema.Schema, table: "WorkflowInstances"); migrationBuilder.DropColumn( name: "IsSystem", - schema: "Elsa", + schema: _schema.Schema, table: "WorkflowDefinitions"); } } diff --git a/src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Runtime/20240326133140_V3_1.Designer.cs b/src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Runtime/20240329200711_V3_1.Designer.cs similarity index 99% rename from src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Runtime/20240326133140_V3_1.Designer.cs rename to src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Runtime/20240329200711_V3_1.Designer.cs index f3b51e896..ff9ba2df0 100644 --- a/src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Runtime/20240326133140_V3_1.Designer.cs +++ b/src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Runtime/20240329200711_V3_1.Designer.cs @@ -12,7 +12,7 @@ using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; namespace Elsa.EntityFrameworkCore.PostgreSql.Migrations.Runtime { [DbContext(typeof(RuntimeElsaDbContext))] - [Migration("20240326133140_V3_1")] + [Migration("20240329200711_V3_1")] partial class V3_1 { /// diff --git a/src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Runtime/20240326133140_V3_1.cs b/src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Runtime/20240329200711_V3_1.cs similarity index 75% rename from src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Runtime/20240326133140_V3_1.cs rename to src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Runtime/20240329200711_V3_1.cs index ab73c3ab9..0f9433fdf 100644 --- a/src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Runtime/20240326133140_V3_1.cs +++ b/src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Runtime/20240329200711_V3_1.cs @@ -1,4 +1,4 @@ -using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Migrations; #nullable disable @@ -7,26 +7,34 @@ namespace Elsa.EntityFrameworkCore.PostgreSql.Migrations.Runtime /// public partial class V3_1 : Migration { + private readonly Elsa.EntityFrameworkCore.Common.Contracts.IElsaDbContextSchema _schema; + + /// + public V3_1(Elsa.EntityFrameworkCore.Common.Contracts.IElsaDbContextSchema schema) + { + _schema = schema; + } + /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn( name: "SerializedActivityStateCompressionAlgorithm", - schema: "Elsa", + schema: _schema.Schema, table: "ActivityExecutionRecords", type: "text", nullable: true); migrationBuilder.AddColumn( name: "SerializedProperties", - schema: "Elsa", + schema: _schema.Schema, table: "ActivityExecutionRecords", type: "text", nullable: true); migrationBuilder.CreateTable( name: "KeyValuePairs", - schema: "Elsa", + schema: _schema.Schema, columns: table => new { Key = table.Column(type: "text", nullable: false), @@ -43,16 +51,16 @@ namespace Elsa.EntityFrameworkCore.PostgreSql.Migrations.Runtime { migrationBuilder.DropTable( name: "KeyValuePairs", - schema: "Elsa"); + schema: _schema.Schema); migrationBuilder.DropColumn( name: "SerializedActivityStateCompressionAlgorithm", - schema: "Elsa", + schema: _schema.Schema, table: "ActivityExecutionRecords"); migrationBuilder.DropColumn( name: "SerializedProperties", - schema: "Elsa", + schema: _schema.Schema, table: "ActivityExecutionRecords"); } } diff --git a/src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Alterations/20240326133111_V3_1.Designer.cs b/src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Alterations/20240329200626_V3_1.Designer.cs similarity index 99% rename from src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Alterations/20240326133111_V3_1.Designer.cs rename to src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Alterations/20240329200626_V3_1.Designer.cs index c8b688f43..4d9c32aef 100644 --- a/src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Alterations/20240326133111_V3_1.Designer.cs +++ b/src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Alterations/20240329200626_V3_1.Designer.cs @@ -12,7 +12,7 @@ using Microsoft.EntityFrameworkCore.Storage.ValueConversion; namespace Elsa.EntityFrameworkCore.SqlServer.Migrations.Alterations { [DbContext(typeof(AlterationsElsaDbContext))] - [Migration("20240326133111_V3_1")] + [Migration("20240329200626_V3_1")] partial class V3_1 { /// diff --git a/src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Alterations/20240326133111_V3_1.cs b/src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Alterations/20240329200626_V3_1.cs similarity index 77% rename from src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Alterations/20240326133111_V3_1.cs rename to src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Alterations/20240329200626_V3_1.cs index 431f8db00..1be2bd830 100644 --- a/src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Alterations/20240326133111_V3_1.cs +++ b/src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Alterations/20240329200626_V3_1.cs @@ -1,4 +1,4 @@ -using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Migrations; #nullable disable @@ -7,18 +7,26 @@ namespace Elsa.EntityFrameworkCore.SqlServer.Migrations.Alterations /// public partial class V3_1 : Migration { + private readonly Elsa.EntityFrameworkCore.Common.Contracts.IElsaDbContextSchema _schema; + + /// + public V3_1(Elsa.EntityFrameworkCore.Common.Contracts.IElsaDbContextSchema schema) + { + _schema = schema; + } + /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.RenameColumn( name: "SerializedWorkflowInstanceIds", - schema: "Elsa", + schema: _schema.Schema, table: "AlterationPlans", newName: "SerializedWorkflowInstanceFilter"); migrationBuilder.AlterColumn( name: "Status", - schema: "Elsa", + schema: _schema.Schema, table: "AlterationPlans", type: "nvarchar(450)", nullable: false, @@ -27,7 +35,7 @@ namespace Elsa.EntityFrameworkCore.SqlServer.Migrations.Alterations migrationBuilder.AlterColumn( name: "Status", - schema: "Elsa", + schema: _schema.Schema, table: "AlterationJobs", type: "nvarchar(450)", nullable: false, @@ -40,13 +48,13 @@ namespace Elsa.EntityFrameworkCore.SqlServer.Migrations.Alterations { migrationBuilder.RenameColumn( name: "SerializedWorkflowInstanceFilter", - schema: "Elsa", + schema: _schema.Schema, table: "AlterationPlans", newName: "SerializedWorkflowInstanceIds"); migrationBuilder.AlterColumn( name: "Status", - schema: "Elsa", + schema: _schema.Schema, table: "AlterationPlans", type: "int", nullable: false, @@ -55,7 +63,7 @@ namespace Elsa.EntityFrameworkCore.SqlServer.Migrations.Alterations migrationBuilder.AlterColumn( name: "Status", - schema: "Elsa", + schema: _schema.Schema, table: "AlterationJobs", type: "int", nullable: false, diff --git a/src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Identity/20240326133220_V3_1.Designer.cs b/src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Identity/20240329200753_V3_1.Designer.cs similarity index 99% rename from src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Identity/20240326133220_V3_1.Designer.cs rename to src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Identity/20240329200753_V3_1.Designer.cs index eaef427a1..0322db1ab 100644 --- a/src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Identity/20240326133220_V3_1.Designer.cs +++ b/src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Identity/20240329200753_V3_1.Designer.cs @@ -11,7 +11,7 @@ using Microsoft.EntityFrameworkCore.Storage.ValueConversion; namespace Elsa.EntityFrameworkCore.SqlServer.Migrations.Identity { [DbContext(typeof(IdentityElsaDbContext))] - [Migration("20240326133220_V3_1")] + [Migration("20240329200753_V3_1")] partial class V3_1 { /// diff --git a/src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Identity/20240326133220_V3_1.cs b/src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Identity/20240329200753_V3_1.cs similarity index 56% rename from src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Identity/20240326133220_V3_1.cs rename to src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Identity/20240329200753_V3_1.cs index 2bace5367..e98a69ceb 100644 --- a/src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Identity/20240326133220_V3_1.cs +++ b/src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Identity/20240329200753_V3_1.cs @@ -1,4 +1,4 @@ -using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Migrations; #nullable disable @@ -7,6 +7,14 @@ namespace Elsa.EntityFrameworkCore.SqlServer.Migrations.Identity /// public partial class V3_1 : Migration { + private readonly Elsa.EntityFrameworkCore.Common.Contracts.IElsaDbContextSchema _schema; + + /// + public V3_1(Elsa.EntityFrameworkCore.Common.Contracts.IElsaDbContextSchema schema) + { + _schema = schema; + } + /// protected override void Up(MigrationBuilder migrationBuilder) { diff --git a/src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Labels/20240326133252_V3_1.Designer.cs b/src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Labels/20240329200825_V3_1.Designer.cs similarity index 98% rename from src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Labels/20240326133252_V3_1.Designer.cs rename to src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Labels/20240329200825_V3_1.Designer.cs index b6dba197d..33710032b 100644 --- a/src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Labels/20240326133252_V3_1.Designer.cs +++ b/src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Labels/20240329200825_V3_1.Designer.cs @@ -11,7 +11,7 @@ using Microsoft.EntityFrameworkCore.Storage.ValueConversion; namespace Elsa.EntityFrameworkCore.SqlServer.Migrations.Labels { [DbContext(typeof(LabelsElsaDbContext))] - [Migration("20240326133252_V3_1")] + [Migration("20240329200825_V3_1")] partial class V3_1 { /// diff --git a/src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Labels/20240326133252_V3_1.cs b/src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Labels/20240329200825_V3_1.cs similarity index 56% rename from src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Labels/20240326133252_V3_1.cs rename to src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Labels/20240329200825_V3_1.cs index efcc2a3e3..b374a0774 100644 --- a/src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Labels/20240326133252_V3_1.cs +++ b/src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Labels/20240329200825_V3_1.cs @@ -1,4 +1,4 @@ -using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Migrations; #nullable disable @@ -7,6 +7,14 @@ namespace Elsa.EntityFrameworkCore.SqlServer.Migrations.Labels /// public partial class V3_1 : Migration { + private readonly Elsa.EntityFrameworkCore.Common.Contracts.IElsaDbContextSchema _schema; + + /// + public V3_1(Elsa.EntityFrameworkCore.Common.Contracts.IElsaDbContextSchema schema) + { + _schema = schema; + } + /// protected override void Up(MigrationBuilder migrationBuilder) { diff --git a/src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Management/20240326133156_V3_1.Designer.cs b/src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Management/20240329200727_V3_1.Designer.cs similarity index 99% rename from src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Management/20240326133156_V3_1.Designer.cs rename to src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Management/20240329200727_V3_1.Designer.cs index a5b73d9db..a23cc5bd7 100644 --- a/src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Management/20240326133156_V3_1.Designer.cs +++ b/src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Management/20240329200727_V3_1.Designer.cs @@ -12,7 +12,7 @@ using Microsoft.EntityFrameworkCore.Storage.ValueConversion; namespace Elsa.EntityFrameworkCore.SqlServer.Migrations.Management { [DbContext(typeof(ManagementElsaDbContext))] - [Migration("20240326133156_V3_1")] + [Migration("20240329200727_V3_1")] partial class V3_1 { /// diff --git a/src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Management/20240326133156_V3_1.cs b/src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Management/20240329200727_V3_1.cs similarity index 75% rename from src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Management/20240326133156_V3_1.cs rename to src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Management/20240329200727_V3_1.cs index 8146d66b4..1d669a5e9 100644 --- a/src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Management/20240326133156_V3_1.cs +++ b/src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Management/20240329200727_V3_1.cs @@ -1,4 +1,4 @@ -using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Migrations; #nullable disable @@ -7,19 +7,27 @@ namespace Elsa.EntityFrameworkCore.SqlServer.Migrations.Management /// public partial class V3_1 : Migration { + private readonly Elsa.EntityFrameworkCore.Common.Contracts.IElsaDbContextSchema _schema; + + /// + public V3_1(Elsa.EntityFrameworkCore.Common.Contracts.IElsaDbContextSchema schema) + { + _schema = schema; + } + /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn( name: "DataCompressionAlgorithm", - schema: "Elsa", + schema: _schema.Schema, table: "WorkflowInstances", type: "nvarchar(max)", nullable: true); migrationBuilder.AddColumn( name: "IsSystem", - schema: "Elsa", + schema: _schema.Schema, table: "WorkflowInstances", type: "bit", nullable: false, @@ -27,14 +35,14 @@ namespace Elsa.EntityFrameworkCore.SqlServer.Migrations.Management migrationBuilder.AddColumn( name: "ParentWorkflowInstanceId", - schema: "Elsa", + schema: _schema.Schema, table: "WorkflowInstances", type: "nvarchar(max)", nullable: true); migrationBuilder.AddColumn( name: "IsSystem", - schema: "Elsa", + schema: _schema.Schema, table: "WorkflowDefinitions", type: "bit", nullable: false, @@ -42,13 +50,13 @@ namespace Elsa.EntityFrameworkCore.SqlServer.Migrations.Management migrationBuilder.CreateIndex( name: "IX_WorkflowInstance_IsSystem", - schema: "Elsa", + schema: _schema.Schema, table: "WorkflowInstances", column: "IsSystem"); migrationBuilder.CreateIndex( name: "IX_WorkflowDefinition_IsSystem", - schema: "Elsa", + schema: _schema.Schema, table: "WorkflowDefinitions", column: "IsSystem"); } @@ -58,32 +66,32 @@ namespace Elsa.EntityFrameworkCore.SqlServer.Migrations.Management { migrationBuilder.DropIndex( name: "IX_WorkflowInstance_IsSystem", - schema: "Elsa", + schema: _schema.Schema, table: "WorkflowInstances"); migrationBuilder.DropIndex( name: "IX_WorkflowDefinition_IsSystem", - schema: "Elsa", + schema: _schema.Schema, table: "WorkflowDefinitions"); migrationBuilder.DropColumn( name: "DataCompressionAlgorithm", - schema: "Elsa", + schema: _schema.Schema, table: "WorkflowInstances"); migrationBuilder.DropColumn( name: "IsSystem", - schema: "Elsa", + schema: _schema.Schema, table: "WorkflowInstances"); migrationBuilder.DropColumn( name: "ParentWorkflowInstanceId", - schema: "Elsa", + schema: _schema.Schema, table: "WorkflowInstances"); migrationBuilder.DropColumn( name: "IsSystem", - schema: "Elsa", + schema: _schema.Schema, table: "WorkflowDefinitions"); } } diff --git a/src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Runtime/20240326133130_V3_1.Designer.cs b/src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Runtime/20240329200657_V3_1.Designer.cs similarity index 99% rename from src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Runtime/20240326133130_V3_1.Designer.cs rename to src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Runtime/20240329200657_V3_1.Designer.cs index da1f4c2e6..2c345fdd7 100644 --- a/src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Runtime/20240326133130_V3_1.Designer.cs +++ b/src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Runtime/20240329200657_V3_1.Designer.cs @@ -12,7 +12,7 @@ using Microsoft.EntityFrameworkCore.Storage.ValueConversion; namespace Elsa.EntityFrameworkCore.SqlServer.Migrations.Runtime { [DbContext(typeof(RuntimeElsaDbContext))] - [Migration("20240326133130_V3_1")] + [Migration("20240329200657_V3_1")] partial class V3_1 { /// diff --git a/src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Runtime/20240326133130_V3_1.cs b/src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Runtime/20240329200657_V3_1.cs similarity index 75% rename from src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Runtime/20240326133130_V3_1.cs rename to src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Runtime/20240329200657_V3_1.cs index e9c633852..b7d11f155 100644 --- a/src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Runtime/20240326133130_V3_1.cs +++ b/src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Runtime/20240329200657_V3_1.cs @@ -1,4 +1,4 @@ -using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Migrations; #nullable disable @@ -7,26 +7,34 @@ namespace Elsa.EntityFrameworkCore.SqlServer.Migrations.Runtime /// public partial class V3_1 : Migration { + private readonly Elsa.EntityFrameworkCore.Common.Contracts.IElsaDbContextSchema _schema; + + /// + public V3_1(Elsa.EntityFrameworkCore.Common.Contracts.IElsaDbContextSchema schema) + { + _schema = schema; + } + /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn( name: "SerializedActivityStateCompressionAlgorithm", - schema: "Elsa", + schema: _schema.Schema, table: "ActivityExecutionRecords", type: "nvarchar(max)", nullable: true); migrationBuilder.AddColumn( name: "SerializedProperties", - schema: "Elsa", + schema: _schema.Schema, table: "ActivityExecutionRecords", type: "nvarchar(max)", nullable: true); migrationBuilder.CreateTable( name: "KeyValuePairs", - schema: "Elsa", + schema: _schema.Schema, columns: table => new { Key = table.Column(type: "nvarchar(450)", nullable: false), @@ -43,16 +51,16 @@ namespace Elsa.EntityFrameworkCore.SqlServer.Migrations.Runtime { migrationBuilder.DropTable( name: "KeyValuePairs", - schema: "Elsa"); + schema: _schema.Schema); migrationBuilder.DropColumn( name: "SerializedActivityStateCompressionAlgorithm", - schema: "Elsa", + schema: _schema.Schema, table: "ActivityExecutionRecords"); migrationBuilder.DropColumn( name: "SerializedProperties", - schema: "Elsa", + schema: _schema.Schema, table: "ActivityExecutionRecords"); } } diff --git a/src/modules/Elsa.EntityFrameworkCore.Sqlite/Migrations/Alterations/20240326133116_V3_1.Designer.cs b/src/modules/Elsa.EntityFrameworkCore.Sqlite/Migrations/Alterations/20240329200634_V3_1.Designer.cs similarity index 99% rename from src/modules/Elsa.EntityFrameworkCore.Sqlite/Migrations/Alterations/20240326133116_V3_1.Designer.cs rename to src/modules/Elsa.EntityFrameworkCore.Sqlite/Migrations/Alterations/20240329200634_V3_1.Designer.cs index f8539bfae..47bab0e42 100644 --- a/src/modules/Elsa.EntityFrameworkCore.Sqlite/Migrations/Alterations/20240326133116_V3_1.Designer.cs +++ b/src/modules/Elsa.EntityFrameworkCore.Sqlite/Migrations/Alterations/20240329200634_V3_1.Designer.cs @@ -10,7 +10,7 @@ using Microsoft.EntityFrameworkCore.Storage.ValueConversion; namespace Elsa.EntityFrameworkCore.Sqlite.Migrations.Alterations { [DbContext(typeof(AlterationsElsaDbContext))] - [Migration("20240326133116_V3_1")] + [Migration("20240329200634_V3_1")] partial class V3_1 { /// diff --git a/src/modules/Elsa.EntityFrameworkCore.Sqlite/Migrations/Alterations/20240326133116_V3_1.cs b/src/modules/Elsa.EntityFrameworkCore.Sqlite/Migrations/Alterations/20240329200634_V3_1.cs similarity index 85% rename from src/modules/Elsa.EntityFrameworkCore.Sqlite/Migrations/Alterations/20240326133116_V3_1.cs rename to src/modules/Elsa.EntityFrameworkCore.Sqlite/Migrations/Alterations/20240329200634_V3_1.cs index b091726a5..818c28dfd 100644 --- a/src/modules/Elsa.EntityFrameworkCore.Sqlite/Migrations/Alterations/20240326133116_V3_1.cs +++ b/src/modules/Elsa.EntityFrameworkCore.Sqlite/Migrations/Alterations/20240329200634_V3_1.cs @@ -1,4 +1,4 @@ -using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Migrations; #nullable disable @@ -7,6 +7,14 @@ namespace Elsa.EntityFrameworkCore.Sqlite.Migrations.Alterations /// public partial class V3_1 : Migration { + private readonly Elsa.EntityFrameworkCore.Common.Contracts.IElsaDbContextSchema _schema; + + /// + public V3_1(Elsa.EntityFrameworkCore.Common.Contracts.IElsaDbContextSchema schema) + { + _schema = schema; + } + /// protected override void Up(MigrationBuilder migrationBuilder) { diff --git a/src/modules/Elsa.EntityFrameworkCore.Sqlite/Migrations/Identity/20240326133236_V3_1.Designer.cs b/src/modules/Elsa.EntityFrameworkCore.Sqlite/Migrations/Identity/20240329200800_V3_1.Designer.cs similarity index 99% rename from src/modules/Elsa.EntityFrameworkCore.Sqlite/Migrations/Identity/20240326133236_V3_1.Designer.cs rename to src/modules/Elsa.EntityFrameworkCore.Sqlite/Migrations/Identity/20240329200800_V3_1.Designer.cs index ab6482f4c..833c23e32 100644 --- a/src/modules/Elsa.EntityFrameworkCore.Sqlite/Migrations/Identity/20240326133236_V3_1.Designer.cs +++ b/src/modules/Elsa.EntityFrameworkCore.Sqlite/Migrations/Identity/20240329200800_V3_1.Designer.cs @@ -10,7 +10,7 @@ using Microsoft.EntityFrameworkCore.Storage.ValueConversion; namespace Elsa.EntityFrameworkCore.Sqlite.Migrations.Identity { [DbContext(typeof(IdentityElsaDbContext))] - [Migration("20240326133236_V3_1")] + [Migration("20240329200800_V3_1")] partial class V3_1 { /// diff --git a/src/modules/Elsa.EntityFrameworkCore.Sqlite/Migrations/Identity/20240326133236_V3_1.cs b/src/modules/Elsa.EntityFrameworkCore.Sqlite/Migrations/Identity/20240329200800_V3_1.cs similarity index 56% rename from src/modules/Elsa.EntityFrameworkCore.Sqlite/Migrations/Identity/20240326133236_V3_1.cs rename to src/modules/Elsa.EntityFrameworkCore.Sqlite/Migrations/Identity/20240329200800_V3_1.cs index 77788e232..7a7b586f5 100644 --- a/src/modules/Elsa.EntityFrameworkCore.Sqlite/Migrations/Identity/20240326133236_V3_1.cs +++ b/src/modules/Elsa.EntityFrameworkCore.Sqlite/Migrations/Identity/20240329200800_V3_1.cs @@ -1,4 +1,4 @@ -using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Migrations; #nullable disable @@ -7,6 +7,14 @@ namespace Elsa.EntityFrameworkCore.Sqlite.Migrations.Identity /// public partial class V3_1 : Migration { + private readonly Elsa.EntityFrameworkCore.Common.Contracts.IElsaDbContextSchema _schema; + + /// + public V3_1(Elsa.EntityFrameworkCore.Common.Contracts.IElsaDbContextSchema schema) + { + _schema = schema; + } + /// protected override void Up(MigrationBuilder migrationBuilder) { diff --git a/src/modules/Elsa.EntityFrameworkCore.Sqlite/Migrations/Labels/20240326133257_V3_1.Designer.cs b/src/modules/Elsa.EntityFrameworkCore.Sqlite/Migrations/Labels/20240329200834_V3_1.Designer.cs similarity index 98% rename from src/modules/Elsa.EntityFrameworkCore.Sqlite/Migrations/Labels/20240326133257_V3_1.Designer.cs rename to src/modules/Elsa.EntityFrameworkCore.Sqlite/Migrations/Labels/20240329200834_V3_1.Designer.cs index 2d8b1df78..0a36316d9 100644 --- a/src/modules/Elsa.EntityFrameworkCore.Sqlite/Migrations/Labels/20240326133257_V3_1.Designer.cs +++ b/src/modules/Elsa.EntityFrameworkCore.Sqlite/Migrations/Labels/20240329200834_V3_1.Designer.cs @@ -10,7 +10,7 @@ using Microsoft.EntityFrameworkCore.Storage.ValueConversion; namespace Elsa.EntityFrameworkCore.Sqlite.Migrations.Labels { [DbContext(typeof(LabelsElsaDbContext))] - [Migration("20240326133257_V3_1")] + [Migration("20240329200834_V3_1")] partial class V3_1 { /// diff --git a/src/modules/Elsa.EntityFrameworkCore.Sqlite/Migrations/Labels/20240326133257_V3_1.cs b/src/modules/Elsa.EntityFrameworkCore.Sqlite/Migrations/Labels/20240329200834_V3_1.cs similarity index 55% rename from src/modules/Elsa.EntityFrameworkCore.Sqlite/Migrations/Labels/20240326133257_V3_1.cs rename to src/modules/Elsa.EntityFrameworkCore.Sqlite/Migrations/Labels/20240329200834_V3_1.cs index 046754efa..d3c0d1c89 100644 --- a/src/modules/Elsa.EntityFrameworkCore.Sqlite/Migrations/Labels/20240326133257_V3_1.cs +++ b/src/modules/Elsa.EntityFrameworkCore.Sqlite/Migrations/Labels/20240329200834_V3_1.cs @@ -1,4 +1,4 @@ -using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Migrations; #nullable disable @@ -7,6 +7,14 @@ namespace Elsa.EntityFrameworkCore.Sqlite.Migrations.Labels /// public partial class V3_1 : Migration { + private readonly Elsa.EntityFrameworkCore.Common.Contracts.IElsaDbContextSchema _schema; + + /// + public V3_1(Elsa.EntityFrameworkCore.Common.Contracts.IElsaDbContextSchema schema) + { + _schema = schema; + } + /// protected override void Up(MigrationBuilder migrationBuilder) { diff --git a/src/modules/Elsa.EntityFrameworkCore.Sqlite/Migrations/Management/20240326133207_V3_1.Designer.cs b/src/modules/Elsa.EntityFrameworkCore.Sqlite/Migrations/Management/20240329200734_V3_1.Designer.cs similarity index 99% rename from src/modules/Elsa.EntityFrameworkCore.Sqlite/Migrations/Management/20240326133207_V3_1.Designer.cs rename to src/modules/Elsa.EntityFrameworkCore.Sqlite/Migrations/Management/20240329200734_V3_1.Designer.cs index 951e24b63..9cc7d53bc 100644 --- a/src/modules/Elsa.EntityFrameworkCore.Sqlite/Migrations/Management/20240326133207_V3_1.Designer.cs +++ b/src/modules/Elsa.EntityFrameworkCore.Sqlite/Migrations/Management/20240329200734_V3_1.Designer.cs @@ -11,7 +11,7 @@ using Microsoft.EntityFrameworkCore.Storage.ValueConversion; namespace Elsa.EntityFrameworkCore.Sqlite.Migrations.Management { [DbContext(typeof(ManagementElsaDbContext))] - [Migration("20240326133207_V3_1")] + [Migration("20240329200734_V3_1")] partial class V3_1 { /// diff --git a/src/modules/Elsa.EntityFrameworkCore.Sqlite/Migrations/Management/20240326133207_V3_1.cs b/src/modules/Elsa.EntityFrameworkCore.Sqlite/Migrations/Management/20240329200734_V3_1.cs similarity index 88% rename from src/modules/Elsa.EntityFrameworkCore.Sqlite/Migrations/Management/20240326133207_V3_1.cs rename to src/modules/Elsa.EntityFrameworkCore.Sqlite/Migrations/Management/20240329200734_V3_1.cs index 6a834f582..c4a0f6ad2 100644 --- a/src/modules/Elsa.EntityFrameworkCore.Sqlite/Migrations/Management/20240326133207_V3_1.cs +++ b/src/modules/Elsa.EntityFrameworkCore.Sqlite/Migrations/Management/20240329200734_V3_1.cs @@ -1,4 +1,4 @@ -using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Migrations; #nullable disable @@ -7,6 +7,14 @@ namespace Elsa.EntityFrameworkCore.Sqlite.Migrations.Management /// public partial class V3_1 : Migration { + private readonly Elsa.EntityFrameworkCore.Common.Contracts.IElsaDbContextSchema _schema; + + /// + public V3_1(Elsa.EntityFrameworkCore.Common.Contracts.IElsaDbContextSchema schema) + { + _schema = schema; + } + /// protected override void Up(MigrationBuilder migrationBuilder) { diff --git a/src/modules/Elsa.EntityFrameworkCore.Sqlite/Migrations/Runtime/20240326133135_V3_1.Designer.cs b/src/modules/Elsa.EntityFrameworkCore.Sqlite/Migrations/Runtime/20240329200705_V3_1.Designer.cs similarity index 99% rename from src/modules/Elsa.EntityFrameworkCore.Sqlite/Migrations/Runtime/20240326133135_V3_1.Designer.cs rename to src/modules/Elsa.EntityFrameworkCore.Sqlite/Migrations/Runtime/20240329200705_V3_1.Designer.cs index eb2a8ac52..a101dd299 100644 --- a/src/modules/Elsa.EntityFrameworkCore.Sqlite/Migrations/Runtime/20240326133135_V3_1.Designer.cs +++ b/src/modules/Elsa.EntityFrameworkCore.Sqlite/Migrations/Runtime/20240329200705_V3_1.Designer.cs @@ -10,7 +10,7 @@ using Microsoft.EntityFrameworkCore.Storage.ValueConversion; namespace Elsa.EntityFrameworkCore.Sqlite.Migrations.Runtime { [DbContext(typeof(RuntimeElsaDbContext))] - [Migration("20240326133135_V3_1")] + [Migration("20240329200705_V3_1")] partial class V3_1 { /// diff --git a/src/modules/Elsa.EntityFrameworkCore.Sqlite/Migrations/Runtime/20240326133135_V3_1.cs b/src/modules/Elsa.EntityFrameworkCore.Sqlite/Migrations/Runtime/20240329200705_V3_1.cs similarity index 84% rename from src/modules/Elsa.EntityFrameworkCore.Sqlite/Migrations/Runtime/20240326133135_V3_1.cs rename to src/modules/Elsa.EntityFrameworkCore.Sqlite/Migrations/Runtime/20240329200705_V3_1.cs index 81b902857..6e3d217d6 100644 --- a/src/modules/Elsa.EntityFrameworkCore.Sqlite/Migrations/Runtime/20240326133135_V3_1.cs +++ b/src/modules/Elsa.EntityFrameworkCore.Sqlite/Migrations/Runtime/20240329200705_V3_1.cs @@ -1,4 +1,4 @@ -using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Migrations; #nullable disable @@ -7,6 +7,14 @@ namespace Elsa.EntityFrameworkCore.Sqlite.Migrations.Runtime /// public partial class V3_1 : Migration { + private readonly Elsa.EntityFrameworkCore.Common.Contracts.IElsaDbContextSchema _schema; + + /// + public V3_1(Elsa.EntityFrameworkCore.Common.Contracts.IElsaDbContextSchema schema) + { + _schema = schema; + } + /// protected override void Up(MigrationBuilder migrationBuilder) {