diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index 8f107f6ae..76d7d7b40 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -13,7 +13,7 @@ - "5432:5432" mysql: - image: mysql:9.1.0 + image: mysql:8.0 container_name: mysql environment: MYSQL_ROOT_PASSWORD: password @@ -23,7 +23,7 @@ ports: - "3306:3306" volumes: - - mysql_data1:/var/lib/mysql + - mysql_data2:/var/lib/mysql mongodb: image: mongo:latest @@ -104,6 +104,6 @@ volumes: postgres-data: - mysql_data1: + mysql_data2: cockroachdb-data: mongodb_data: diff --git a/scripts/migrations/efcore-3.1.sh b/scripts/migrations/efcore-3.1.sh index 158880741..b9357f071 100755 --- a/scripts/migrations/efcore-3.1.sh +++ b/scripts/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" - ef-migration-runtime-schema --interface Elsa.EntityFrameworkCore.Common.Contracts.IElsaDbContextSchema --efOptions "migrations add V3_1 -c ""$module""ElsaDbContext -p ""$providerPath"" -o ""$migrationsPath""" + ef-migration-runtime-schema --interface Elsa.EntityFrameworkCore.IElsaDbContextSchema --efOptions "migrations add V3_1 -c ""$module""ElsaDbContext -p ""$providerPath"" -o ""$migrationsPath""" done done diff --git a/scripts/migrations/efcore-3.2.sh b/scripts/migrations/efcore-3.2.sh index 0a2edd654..c9fc38e44 100755 --- a/scripts/migrations/efcore-3.2.sh +++ b/scripts/migrations/efcore-3.2.sh @@ -16,6 +16,6 @@ for module in "${mods[@]}"; do echo "Updating migrations for $provider..." echo "Provider path: ${providerPath:?}/${migrationsPath}" echo "Migrations path: $migrationsPath" - ef-migration-runtime-schema --interface Elsa.EntityFrameworkCore.Common.Contracts.IElsaDbContextSchema --efOptions "migrations add V3_2 -c ""$module""ElsaDbContext -p ""$providerPath"" -o ""$migrationsPath""" + ef-migration-runtime-schema --interface Elsa.EntityFrameworkCore.IElsaDbContextSchema --efOptions "migrations add V3_2 -c ""$module""ElsaDbContext -p ""$providerPath"" -o ""$migrationsPath""" done done diff --git a/src/apps/Directory.Build.props b/src/apps/Directory.Build.props index 2e6c5f63d..1ead41344 100644 --- a/src/apps/Directory.Build.props +++ b/src/apps/Directory.Build.props @@ -1,6 +1,6 @@ - net9.0 + net8.0 latest enable enable diff --git a/src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Runtime/20231024160940_Initial.cs b/src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Runtime/20231024160940_Initial.cs index 29faf3e35..cf3eb698a 100644 --- a/src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Runtime/20231024160940_Initial.cs +++ b/src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Runtime/20231024160940_Initial.cs @@ -1,4 +1,4 @@ - +using Elsa.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable diff --git a/src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Runtime/20240329200651_V3_1.cs b/src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Runtime/20240329200651_V3_1.cs index dcda40b23..0092d23c1 100644 --- a/src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Runtime/20240329200651_V3_1.cs +++ b/src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Runtime/20240329200651_V3_1.cs @@ -7,10 +7,10 @@ namespace Elsa.EntityFrameworkCore.MySql.Migrations.Runtime /// public partial class V3_1 : Migration { - private readonly IElsaDbContextSchema _schema; + private readonly Elsa.EntityFrameworkCore.IElsaDbContextSchema _schema; /// - public V3_1(IElsaDbContextSchema schema) + public V3_1(Elsa.EntityFrameworkCore.IElsaDbContextSchema schema) { _schema = schema; } diff --git a/src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Runtime/20240610184652_V3_2.cs b/src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Runtime/20240610184652_V3_2.cs index 891b4ba00..978783615 100644 --- a/src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Runtime/20240610184652_V3_2.cs +++ b/src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Runtime/20240610184652_V3_2.cs @@ -7,10 +7,10 @@ namespace Elsa.EntityFrameworkCore.MySql.Migrations.Runtime /// public partial class V3_2 : Migration { - private readonly IElsaDbContextSchema _schema; + private readonly Elsa.EntityFrameworkCore.IElsaDbContextSchema _schema; /// - public V3_2(IElsaDbContextSchema schema) + public V3_2(Elsa.EntityFrameworkCore.IElsaDbContextSchema schema) { _schema = schema; } diff --git a/src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Runtime/20241212211632_V3_3.Designer.cs b/src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Runtime/20241231124504_V3_3.Designer.cs similarity index 98% rename from src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Runtime/20241212211632_V3_3.Designer.cs rename to src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Runtime/20241231124504_V3_3.Designer.cs index 16473bb4d..66b24b533 100644 --- a/src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Runtime/20241212211632_V3_3.Designer.cs +++ b/src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Runtime/20241231124504_V3_3.Designer.cs @@ -3,6 +3,7 @@ using System; using Elsa.EntityFrameworkCore.Modules.Runtime; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; @@ -11,7 +12,7 @@ using Microsoft.EntityFrameworkCore.Storage.ValueConversion; namespace Elsa.EntityFrameworkCore.MySql.Migrations.Runtime { [DbContext(typeof(RuntimeElsaDbContext))] - [Migration("20241212211632_V3_3")] + [Migration("20241231124504_V3_3")] partial class V3_3 { /// @@ -20,9 +21,11 @@ namespace Elsa.EntityFrameworkCore.MySql.Migrations.Runtime #pragma warning disable 612, 618 modelBuilder .HasDefaultSchema("Elsa") - .HasAnnotation("ProductVersion", "7.0.20") + .HasAnnotation("ProductVersion", "9.0.0") .HasAnnotation("Relational:MaxIdentifierLength", 64); + MySqlModelBuilderExtensions.AutoIncrementColumns(modelBuilder); + modelBuilder.Entity("Elsa.KeyValues.Entities.SerializedKeyValuePair", b => { b.Property("Id") @@ -213,10 +216,6 @@ namespace Elsa.EntityFrameworkCore.MySql.Migrations.Runtime .IsRequired() .HasColumnType("varchar(255)"); - b.Property("BookmarkId") - .IsRequired() - .HasColumnType("longtext"); - b.Property("CorrelationId") .HasColumnType("longtext"); diff --git a/src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Runtime/20241212211632_V3_3.cs b/src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Runtime/20241231124504_V3_3.cs similarity index 86% rename from src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Runtime/20241212211632_V3_3.cs rename to src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Runtime/20241231124504_V3_3.cs index 1bd14cf16..ab100e254 100644 --- a/src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Runtime/20241212211632_V3_3.cs +++ b/src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Runtime/20241231124504_V3_3.cs @@ -24,10 +24,11 @@ namespace Elsa.EntityFrameworkCore.MySql.Migrations.Runtime schema: _schema.Schema, table: "KeyValuePairs"); - migrationBuilder.DropPrimaryKey( - name: "PK_Bookmarks", + migrationBuilder.RenameColumn( + name: "BookmarkId", schema: _schema.Schema, - table: "Bookmarks"); + table: "Bookmarks", + newName: "Id"); migrationBuilder.AddColumn( name: "TenantId", @@ -81,26 +82,6 @@ namespace Elsa.EntityFrameworkCore.MySql.Migrations.Runtime nullable: true) .Annotation("MySql:CharSet", "utf8mb4"); - migrationBuilder.AlterColumn( - name: "BookmarkId", - schema: _schema.Schema, - table: "Bookmarks", - type: "longtext", - nullable: false, - oldClrType: typeof(string), - oldType: "varchar(255)") - .Annotation("MySql:CharSet", "utf8mb4") - .OldAnnotation("MySql:CharSet", "utf8mb4"); - - migrationBuilder.AddColumn( - name: "Id", - schema: _schema.Schema, - table: "Bookmarks", - type: "varchar(255)", - nullable: false, - defaultValue: "") - .Annotation("MySql:CharSet", "utf8mb4"); - migrationBuilder.AddColumn( name: "TenantId", schema: _schema.Schema, @@ -123,12 +104,6 @@ namespace Elsa.EntityFrameworkCore.MySql.Migrations.Runtime table: "KeyValuePairs", column: "Id"); - migrationBuilder.AddPrimaryKey( - name: "PK_Bookmarks", - schema: _schema.Schema, - table: "Bookmarks", - column: "Id"); - migrationBuilder.CreateTable( name: "BookmarkQueueItems", schema: _schema.Schema, @@ -266,11 +241,6 @@ namespace Elsa.EntityFrameworkCore.MySql.Migrations.Runtime schema: _schema.Schema, table: "KeyValuePairs"); - migrationBuilder.DropPrimaryKey( - name: "PK_Bookmarks", - schema: _schema.Schema, - table: "Bookmarks"); - migrationBuilder.DropIndex( name: "IX_StoredBookmark_TenantId", schema: _schema.Schema, @@ -306,11 +276,6 @@ namespace Elsa.EntityFrameworkCore.MySql.Migrations.Runtime schema: _schema.Schema, table: "KeyValuePairs"); - migrationBuilder.DropColumn( - name: "Id", - schema: _schema.Schema, - table: "Bookmarks"); - migrationBuilder.DropColumn( name: "TenantId", schema: _schema.Schema, @@ -321,6 +286,12 @@ namespace Elsa.EntityFrameworkCore.MySql.Migrations.Runtime schema: _schema.Schema, table: "ActivityExecutionRecords"); + migrationBuilder.RenameColumn( + name: "Id", + schema: _schema.Schema, + table: "Bookmarks", + newName: "BookmarkId"); + migrationBuilder.AlterColumn( name: "Key", schema: _schema.Schema, @@ -332,28 +303,11 @@ namespace Elsa.EntityFrameworkCore.MySql.Migrations.Runtime .Annotation("MySql:CharSet", "utf8mb4") .OldAnnotation("MySql:CharSet", "utf8mb4"); - migrationBuilder.AlterColumn( - name: "BookmarkId", - schema: _schema.Schema, - table: "Bookmarks", - type: "varchar(255)", - nullable: false, - oldClrType: typeof(string), - oldType: "longtext") - .Annotation("MySql:CharSet", "utf8mb4") - .OldAnnotation("MySql:CharSet", "utf8mb4"); - migrationBuilder.AddPrimaryKey( name: "PK_KeyValuePairs", schema: _schema.Schema, table: "KeyValuePairs", column: "Key"); - - migrationBuilder.AddPrimaryKey( - name: "PK_Bookmarks", - schema: _schema.Schema, - table: "Bookmarks", - column: "BookmarkId"); } } } diff --git a/src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Runtime/RuntimeElsaDbContextModelSnapshot.cs b/src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Runtime/RuntimeElsaDbContextModelSnapshot.cs index b82e19325..5a4d7a6af 100644 --- a/src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Runtime/RuntimeElsaDbContextModelSnapshot.cs +++ b/src/modules/Elsa.EntityFrameworkCore.MySql/Migrations/Runtime/RuntimeElsaDbContextModelSnapshot.cs @@ -3,6 +3,7 @@ using System; using Elsa.EntityFrameworkCore.Modules.Runtime; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; #nullable disable @@ -17,9 +18,11 @@ namespace Elsa.EntityFrameworkCore.MySql.Migrations.Runtime #pragma warning disable 612, 618 modelBuilder .HasDefaultSchema("Elsa") - .HasAnnotation("ProductVersion", "7.0.20") + .HasAnnotation("ProductVersion", "9.0.0") .HasAnnotation("Relational:MaxIdentifierLength", 64); + MySqlModelBuilderExtensions.AutoIncrementColumns(modelBuilder); + modelBuilder.Entity("Elsa.KeyValues.Entities.SerializedKeyValuePair", b => { b.Property("Id") @@ -210,10 +213,6 @@ namespace Elsa.EntityFrameworkCore.MySql.Migrations.Runtime .IsRequired() .HasColumnType("varchar(255)"); - b.Property("BookmarkId") - .IsRequired() - .HasColumnType("longtext"); - b.Property("CorrelationId") .HasColumnType("longtext"); diff --git a/src/modules/Elsa.EntityFrameworkCore.Oracle/Migrations/Runtime/20241212211722_V3_3.Designer.cs b/src/modules/Elsa.EntityFrameworkCore.Oracle/Migrations/Runtime/20241231124811_V3_3.Designer.cs similarity index 98% rename from src/modules/Elsa.EntityFrameworkCore.Oracle/Migrations/Runtime/20241212211722_V3_3.Designer.cs rename to src/modules/Elsa.EntityFrameworkCore.Oracle/Migrations/Runtime/20241231124811_V3_3.Designer.cs index 340dce4a6..f554d55de 100644 --- a/src/modules/Elsa.EntityFrameworkCore.Oracle/Migrations/Runtime/20241212211722_V3_3.Designer.cs +++ b/src/modules/Elsa.EntityFrameworkCore.Oracle/Migrations/Runtime/20241231124811_V3_3.Designer.cs @@ -12,7 +12,7 @@ using Oracle.EntityFrameworkCore.Metadata; namespace Elsa.EntityFrameworkCore.Oracle.Migrations.Runtime { [DbContext(typeof(RuntimeElsaDbContext))] - [Migration("20241212211722_V3_3")] + [Migration("20241231124811_V3_3")] partial class V3_3 { /// @@ -21,7 +21,7 @@ namespace Elsa.EntityFrameworkCore.Oracle.Migrations.Runtime #pragma warning disable 612, 618 modelBuilder .HasDefaultSchema("Elsa") - .HasAnnotation("ProductVersion", "7.0.20") + .HasAnnotation("ProductVersion", "9.0.0") .HasAnnotation("Relational:MaxIdentifierLength", 128); OracleModelBuilderExtensions.UseIdentityColumns(modelBuilder); @@ -76,7 +76,7 @@ namespace Elsa.EntityFrameworkCore.Oracle.Migrations.Runtime .HasColumnType("TIMESTAMP(7) WITH TIME ZONE"); b.Property("HasBookmarks") - .HasColumnType("NUMBER(1)"); + .HasColumnType("BOOLEAN"); b.Property("SerializedActivityState") .HasColumnType("NVARCHAR2(2000)"); @@ -216,10 +216,6 @@ namespace Elsa.EntityFrameworkCore.Oracle.Migrations.Runtime .IsRequired() .HasColumnType("NVARCHAR2(450)"); - b.Property("BookmarkId") - .IsRequired() - .HasColumnType("NVARCHAR2(2000)"); - b.Property("CorrelationId") .HasColumnType("NVARCHAR2(2000)"); diff --git a/src/modules/Elsa.EntityFrameworkCore.Oracle/Migrations/Runtime/20241212211722_V3_3.cs b/src/modules/Elsa.EntityFrameworkCore.Oracle/Migrations/Runtime/20241231124811_V3_3.cs similarity index 99% rename from src/modules/Elsa.EntityFrameworkCore.Oracle/Migrations/Runtime/20241212211722_V3_3.cs rename to src/modules/Elsa.EntityFrameworkCore.Oracle/Migrations/Runtime/20241231124811_V3_3.cs index 672dc5645..435afcca0 100644 --- a/src/modules/Elsa.EntityFrameworkCore.Oracle/Migrations/Runtime/20241212211722_V3_3.cs +++ b/src/modules/Elsa.EntityFrameworkCore.Oracle/Migrations/Runtime/20241231124811_V3_3.cs @@ -35,7 +35,7 @@ namespace Elsa.EntityFrameworkCore.Oracle.Migrations.Runtime ActivityTypeVersion = table.Column(type: "NUMBER(10)", nullable: false), ActivityName = table.Column(type: "NVARCHAR2(450)", nullable: true), StartedAt = table.Column(type: "TIMESTAMP(7) WITH TIME ZONE", nullable: false), - HasBookmarks = table.Column(type: "NUMBER(1)", nullable: false), + HasBookmarks = table.Column(type: "BOOLEAN", nullable: false), Status = table.Column(type: "NVARCHAR2(450)", nullable: false), CompletedAt = table.Column(type: "TIMESTAMP(7) WITH TIME ZONE", nullable: true), SerializedActivityState = table.Column(type: "NVARCHAR2(2000)", nullable: true), @@ -78,7 +78,6 @@ namespace Elsa.EntityFrameworkCore.Oracle.Migrations.Runtime columns: table => new { Id = table.Column(type: "NVARCHAR2(450)", nullable: false), - BookmarkId = table.Column(type: "NVARCHAR2(2000)", nullable: false), ActivityTypeName = table.Column(type: "NVARCHAR2(450)", nullable: false), Hash = table.Column(type: "NVARCHAR2(450)", nullable: false), WorkflowInstanceId = table.Column(type: "NVARCHAR2(450)", nullable: false), diff --git a/src/modules/Elsa.EntityFrameworkCore.Oracle/Migrations/Runtime/RuntimeElsaDbContextModelSnapshot.cs b/src/modules/Elsa.EntityFrameworkCore.Oracle/Migrations/Runtime/RuntimeElsaDbContextModelSnapshot.cs index cad99cefa..41ef0f940 100644 --- a/src/modules/Elsa.EntityFrameworkCore.Oracle/Migrations/Runtime/RuntimeElsaDbContextModelSnapshot.cs +++ b/src/modules/Elsa.EntityFrameworkCore.Oracle/Migrations/Runtime/RuntimeElsaDbContextModelSnapshot.cs @@ -18,7 +18,7 @@ namespace Elsa.EntityFrameworkCore.Oracle.Migrations.Runtime #pragma warning disable 612, 618 modelBuilder .HasDefaultSchema("Elsa") - .HasAnnotation("ProductVersion", "7.0.20") + .HasAnnotation("ProductVersion", "9.0.0") .HasAnnotation("Relational:MaxIdentifierLength", 128); OracleModelBuilderExtensions.UseIdentityColumns(modelBuilder); @@ -73,7 +73,7 @@ namespace Elsa.EntityFrameworkCore.Oracle.Migrations.Runtime .HasColumnType("TIMESTAMP(7) WITH TIME ZONE"); b.Property("HasBookmarks") - .HasColumnType("NUMBER(1)"); + .HasColumnType("BOOLEAN"); b.Property("SerializedActivityState") .HasColumnType("NVARCHAR2(2000)"); @@ -213,10 +213,6 @@ namespace Elsa.EntityFrameworkCore.Oracle.Migrations.Runtime .IsRequired() .HasColumnType("NVARCHAR2(450)"); - b.Property("BookmarkId") - .IsRequired() - .HasColumnType("NVARCHAR2(2000)"); - b.Property("CorrelationId") .HasColumnType("NVARCHAR2(2000)"); diff --git a/src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Runtime/20231024160952_Initial.cs b/src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Runtime/20231024160952_Initial.cs index 64226b886..8412c641b 100644 --- a/src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Runtime/20231024160952_Initial.cs +++ b/src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Runtime/20231024160952_Initial.cs @@ -1,4 +1,4 @@ - +using Elsa.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable diff --git a/src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Runtime/20240329200711_V3_1.cs b/src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Runtime/20240329200711_V3_1.cs index 00dfc44e8..821d29f2e 100644 --- a/src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Runtime/20240329200711_V3_1.cs +++ b/src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Runtime/20240329200711_V3_1.cs @@ -7,10 +7,10 @@ namespace Elsa.EntityFrameworkCore.PostgreSql.Migrations.Runtime /// public partial class V3_1 : Migration { - private readonly IElsaDbContextSchema _schema; + private readonly Elsa.EntityFrameworkCore.IElsaDbContextSchema _schema; /// - public V3_1(IElsaDbContextSchema schema) + public V3_1(Elsa.EntityFrameworkCore.IElsaDbContextSchema schema) { _schema = schema; } diff --git a/src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Runtime/20240610184748_V3_2.cs b/src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Runtime/20240610184748_V3_2.cs index 830c75445..d61e4aec4 100644 --- a/src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Runtime/20240610184748_V3_2.cs +++ b/src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Runtime/20240610184748_V3_2.cs @@ -7,10 +7,10 @@ namespace Elsa.EntityFrameworkCore.PostgreSql.Migrations.Runtime /// public partial class V3_2 : Migration { - private readonly IElsaDbContextSchema _schema; + private readonly Elsa.EntityFrameworkCore.IElsaDbContextSchema _schema; /// - public V3_2(IElsaDbContextSchema schema) + public V3_2(Elsa.EntityFrameworkCore.IElsaDbContextSchema schema) { _schema = schema; } diff --git a/src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Runtime/20241212211710_V3_3.Designer.cs b/src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Runtime/20241231124728_V3_3.Designer.cs similarity index 98% rename from src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Runtime/20241212211710_V3_3.Designer.cs rename to src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Runtime/20241231124728_V3_3.Designer.cs index 516ec8a2a..c86657426 100644 --- a/src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Runtime/20241212211710_V3_3.Designer.cs +++ b/src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Runtime/20241231124728_V3_3.Designer.cs @@ -12,7 +12,7 @@ using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; namespace Elsa.EntityFrameworkCore.PostgreSql.Migrations.Runtime { [DbContext(typeof(RuntimeElsaDbContext))] - [Migration("20241212211710_V3_3")] + [Migration("20241231124728_V3_3")] partial class V3_3 { /// @@ -21,7 +21,7 @@ namespace Elsa.EntityFrameworkCore.PostgreSql.Migrations.Runtime #pragma warning disable 612, 618 modelBuilder .HasDefaultSchema("Elsa") - .HasAnnotation("ProductVersion", "7.0.20") + .HasAnnotation("ProductVersion", "9.0.0") .HasAnnotation("Relational:MaxIdentifierLength", 63); NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); @@ -216,10 +216,6 @@ namespace Elsa.EntityFrameworkCore.PostgreSql.Migrations.Runtime .IsRequired() .HasColumnType("text"); - b.Property("BookmarkId") - .IsRequired() - .HasColumnType("text"); - b.Property("CorrelationId") .HasColumnType("text"); diff --git a/src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Runtime/20241212211710_V3_3.cs b/src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Runtime/20241231124728_V3_3.cs similarity index 91% rename from src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Runtime/20241212211710_V3_3.cs rename to src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Runtime/20241231124728_V3_3.cs index 17e35fbe8..9f8654a83 100644 --- a/src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Runtime/20241212211710_V3_3.cs +++ b/src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Runtime/20241231124728_V3_3.cs @@ -24,10 +24,11 @@ namespace Elsa.EntityFrameworkCore.PostgreSql.Migrations.Runtime schema: _schema.Schema, table: "KeyValuePairs"); - migrationBuilder.DropPrimaryKey( - name: "PK_Bookmarks", + migrationBuilder.RenameColumn( + name: "BookmarkId", schema: _schema.Schema, - table: "Bookmarks"); + table: "Bookmarks", + newName: "Id"); migrationBuilder.AddColumn( name: "TenantId", @@ -65,14 +66,6 @@ namespace Elsa.EntityFrameworkCore.PostgreSql.Migrations.Runtime type: "text", nullable: true); - migrationBuilder.AddColumn( - name: "Id", - schema: _schema.Schema, - table: "Bookmarks", - type: "text", - nullable: false, - defaultValue: ""); - migrationBuilder.AddColumn( name: "TenantId", schema: _schema.Schema, @@ -93,12 +86,6 @@ namespace Elsa.EntityFrameworkCore.PostgreSql.Migrations.Runtime table: "KeyValuePairs", column: "Id"); - migrationBuilder.AddPrimaryKey( - name: "PK_Bookmarks", - schema: _schema.Schema, - table: "Bookmarks", - column: "Id"); - migrationBuilder.CreateTable( name: "BookmarkQueueItems", schema: _schema.Schema, @@ -226,11 +213,6 @@ namespace Elsa.EntityFrameworkCore.PostgreSql.Migrations.Runtime schema: _schema.Schema, table: "KeyValuePairs"); - migrationBuilder.DropPrimaryKey( - name: "PK_Bookmarks", - schema: _schema.Schema, - table: "Bookmarks"); - migrationBuilder.DropIndex( name: "IX_StoredBookmark_TenantId", schema: _schema.Schema, @@ -266,11 +248,6 @@ namespace Elsa.EntityFrameworkCore.PostgreSql.Migrations.Runtime schema: _schema.Schema, table: "KeyValuePairs"); - migrationBuilder.DropColumn( - name: "Id", - schema: _schema.Schema, - table: "Bookmarks"); - migrationBuilder.DropColumn( name: "TenantId", schema: _schema.Schema, @@ -281,17 +258,17 @@ namespace Elsa.EntityFrameworkCore.PostgreSql.Migrations.Runtime schema: _schema.Schema, table: "ActivityExecutionRecords"); + migrationBuilder.RenameColumn( + name: "Id", + schema: _schema.Schema, + table: "Bookmarks", + newName: "BookmarkId"); + migrationBuilder.AddPrimaryKey( name: "PK_KeyValuePairs", schema: _schema.Schema, table: "KeyValuePairs", column: "Key"); - - migrationBuilder.AddPrimaryKey( - name: "PK_Bookmarks", - schema: _schema.Schema, - table: "Bookmarks", - column: "BookmarkId"); } } } diff --git a/src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Runtime/RuntimeElsaDbContextModelSnapshot.cs b/src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Runtime/RuntimeElsaDbContextModelSnapshot.cs index a16cbd662..643dc2474 100644 --- a/src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Runtime/RuntimeElsaDbContextModelSnapshot.cs +++ b/src/modules/Elsa.EntityFrameworkCore.PostgreSql/Migrations/Runtime/RuntimeElsaDbContextModelSnapshot.cs @@ -18,7 +18,7 @@ namespace Elsa.EntityFrameworkCore.PostgreSql.Migrations.Runtime #pragma warning disable 612, 618 modelBuilder .HasDefaultSchema("Elsa") - .HasAnnotation("ProductVersion", "7.0.20") + .HasAnnotation("ProductVersion", "9.0.0") .HasAnnotation("Relational:MaxIdentifierLength", 63); NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); @@ -213,10 +213,6 @@ namespace Elsa.EntityFrameworkCore.PostgreSql.Migrations.Runtime .IsRequired() .HasColumnType("text"); - b.Property("BookmarkId") - .IsRequired() - .HasColumnType("text"); - b.Property("CorrelationId") .HasColumnType("text"); diff --git a/src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Runtime/20231024160944_Initial.cs b/src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Runtime/20231024160944_Initial.cs index af48889a8..85ae54f44 100644 --- a/src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Runtime/20231024160944_Initial.cs +++ b/src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Runtime/20231024160944_Initial.cs @@ -1,4 +1,4 @@ - +using Elsa.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable diff --git a/src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Runtime/20240329200657_V3_1.cs b/src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Runtime/20240329200657_V3_1.cs index abaac578e..342469eec 100644 --- a/src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Runtime/20240329200657_V3_1.cs +++ b/src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Runtime/20240329200657_V3_1.cs @@ -7,10 +7,10 @@ namespace Elsa.EntityFrameworkCore.SqlServer.Migrations.Runtime /// public partial class V3_1 : Migration { - private readonly IElsaDbContextSchema _schema; + private readonly Elsa.EntityFrameworkCore.IElsaDbContextSchema _schema; /// - public V3_1(IElsaDbContextSchema schema) + public V3_1(Elsa.EntityFrameworkCore.IElsaDbContextSchema schema) { _schema = schema; } diff --git a/src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Runtime/20240610184719_V3_2.cs b/src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Runtime/20240610184719_V3_2.cs index 67ba36b5f..4f0f4c3ef 100644 --- a/src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Runtime/20240610184719_V3_2.cs +++ b/src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Runtime/20240610184719_V3_2.cs @@ -7,10 +7,10 @@ namespace Elsa.EntityFrameworkCore.SqlServer.Migrations.Runtime /// public partial class V3_2 : Migration { - private readonly IElsaDbContextSchema _schema; + private readonly Elsa.EntityFrameworkCore.IElsaDbContextSchema _schema; /// - public V3_2(IElsaDbContextSchema schema) + public V3_2(Elsa.EntityFrameworkCore.IElsaDbContextSchema schema) { _schema = schema; } diff --git a/src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Runtime/20241212211646_V3_3.Designer.cs b/src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Runtime/20241231124643_V3_3.Designer.cs similarity index 98% rename from src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Runtime/20241212211646_V3_3.Designer.cs rename to src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Runtime/20241231124643_V3_3.Designer.cs index 117ee983b..fdc1b9e23 100644 --- a/src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Runtime/20241212211646_V3_3.Designer.cs +++ b/src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Runtime/20241231124643_V3_3.Designer.cs @@ -12,7 +12,7 @@ using Microsoft.EntityFrameworkCore.Storage.ValueConversion; namespace Elsa.EntityFrameworkCore.SqlServer.Migrations.Runtime { [DbContext(typeof(RuntimeElsaDbContext))] - [Migration("20241212211646_V3_3")] + [Migration("20241231124643_V3_3")] partial class V3_3 { /// @@ -21,7 +21,7 @@ namespace Elsa.EntityFrameworkCore.SqlServer.Migrations.Runtime #pragma warning disable 612, 618 modelBuilder .HasDefaultSchema("Elsa") - .HasAnnotation("ProductVersion", "7.0.20") + .HasAnnotation("ProductVersion", "9.0.0") .HasAnnotation("Relational:MaxIdentifierLength", 128); SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); @@ -216,10 +216,6 @@ namespace Elsa.EntityFrameworkCore.SqlServer.Migrations.Runtime .IsRequired() .HasColumnType("nvarchar(450)"); - b.Property("BookmarkId") - .IsRequired() - .HasColumnType("nvarchar(max)"); - b.Property("CorrelationId") .HasColumnType("nvarchar(max)"); diff --git a/src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Runtime/20241212211646_V3_3.cs b/src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Runtime/20241231124643_V3_3.cs similarity index 87% rename from src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Runtime/20241212211646_V3_3.cs rename to src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Runtime/20241231124643_V3_3.cs index b16e9c9ea..c8a162b3e 100644 --- a/src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Runtime/20241212211646_V3_3.cs +++ b/src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Runtime/20241231124643_V3_3.cs @@ -24,10 +24,11 @@ namespace Elsa.EntityFrameworkCore.SqlServer.Migrations.Runtime schema: _schema.Schema, table: "KeyValuePairs"); - migrationBuilder.DropPrimaryKey( - name: "PK_Bookmarks", + migrationBuilder.RenameColumn( + name: "BookmarkId", schema: _schema.Schema, - table: "Bookmarks"); + table: "Bookmarks", + newName: "Id"); migrationBuilder.AddColumn( name: "TenantId", @@ -74,23 +75,6 @@ namespace Elsa.EntityFrameworkCore.SqlServer.Migrations.Runtime type: "nvarchar(450)", nullable: true); - migrationBuilder.AlterColumn( - name: "BookmarkId", - schema: _schema.Schema, - table: "Bookmarks", - type: "nvarchar(max)", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(450)"); - - migrationBuilder.AddColumn( - name: "Id", - schema: _schema.Schema, - table: "Bookmarks", - type: "nvarchar(450)", - nullable: false, - defaultValue: ""); - migrationBuilder.AddColumn( name: "TenantId", schema: _schema.Schema, @@ -111,12 +95,6 @@ namespace Elsa.EntityFrameworkCore.SqlServer.Migrations.Runtime table: "KeyValuePairs", column: "Id"); - migrationBuilder.AddPrimaryKey( - name: "PK_Bookmarks", - schema: _schema.Schema, - table: "Bookmarks", - column: "Id"); - migrationBuilder.CreateTable( name: "BookmarkQueueItems", schema: _schema.Schema, @@ -244,11 +222,6 @@ namespace Elsa.EntityFrameworkCore.SqlServer.Migrations.Runtime schema: _schema.Schema, table: "KeyValuePairs"); - migrationBuilder.DropPrimaryKey( - name: "PK_Bookmarks", - schema: _schema.Schema, - table: "Bookmarks"); - migrationBuilder.DropIndex( name: "IX_StoredBookmark_TenantId", schema: _schema.Schema, @@ -284,11 +257,6 @@ namespace Elsa.EntityFrameworkCore.SqlServer.Migrations.Runtime schema: _schema.Schema, table: "KeyValuePairs"); - migrationBuilder.DropColumn( - name: "Id", - schema: _schema.Schema, - table: "Bookmarks"); - migrationBuilder.DropColumn( name: "TenantId", schema: _schema.Schema, @@ -299,6 +267,12 @@ namespace Elsa.EntityFrameworkCore.SqlServer.Migrations.Runtime schema: _schema.Schema, table: "ActivityExecutionRecords"); + migrationBuilder.RenameColumn( + name: "Id", + schema: _schema.Schema, + table: "Bookmarks", + newName: "BookmarkId"); + migrationBuilder.AlterColumn( name: "Key", schema: _schema.Schema, @@ -308,26 +282,11 @@ namespace Elsa.EntityFrameworkCore.SqlServer.Migrations.Runtime oldClrType: typeof(string), oldType: "nvarchar(max)"); - migrationBuilder.AlterColumn( - name: "BookmarkId", - schema: _schema.Schema, - table: "Bookmarks", - type: "nvarchar(450)", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(max)"); - migrationBuilder.AddPrimaryKey( name: "PK_KeyValuePairs", schema: _schema.Schema, table: "KeyValuePairs", column: "Key"); - - migrationBuilder.AddPrimaryKey( - name: "PK_Bookmarks", - schema: _schema.Schema, - table: "Bookmarks", - column: "BookmarkId"); } } } diff --git a/src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Runtime/RuntimeElsaDbContextModelSnapshot.cs b/src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Runtime/RuntimeElsaDbContextModelSnapshot.cs index 752f26c97..663fb6f45 100644 --- a/src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Runtime/RuntimeElsaDbContextModelSnapshot.cs +++ b/src/modules/Elsa.EntityFrameworkCore.SqlServer/Migrations/Runtime/RuntimeElsaDbContextModelSnapshot.cs @@ -18,7 +18,7 @@ namespace Elsa.EntityFrameworkCore.SqlServer.Migrations.Runtime #pragma warning disable 612, 618 modelBuilder .HasDefaultSchema("Elsa") - .HasAnnotation("ProductVersion", "7.0.20") + .HasAnnotation("ProductVersion", "9.0.0") .HasAnnotation("Relational:MaxIdentifierLength", 128); SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); @@ -213,10 +213,6 @@ namespace Elsa.EntityFrameworkCore.SqlServer.Migrations.Runtime .IsRequired() .HasColumnType("nvarchar(450)"); - b.Property("BookmarkId") - .IsRequired() - .HasColumnType("nvarchar(max)"); - b.Property("CorrelationId") .HasColumnType("nvarchar(max)"); diff --git a/src/modules/Elsa.EntityFrameworkCore.Sqlite/Migrations/Runtime/20240329200705_V3_1.cs b/src/modules/Elsa.EntityFrameworkCore.Sqlite/Migrations/Runtime/20240329200705_V3_1.cs index ddea13893..c6e73b527 100644 --- a/src/modules/Elsa.EntityFrameworkCore.Sqlite/Migrations/Runtime/20240329200705_V3_1.cs +++ b/src/modules/Elsa.EntityFrameworkCore.Sqlite/Migrations/Runtime/20240329200705_V3_1.cs @@ -7,10 +7,10 @@ namespace Elsa.EntityFrameworkCore.Sqlite.Migrations.Runtime /// public partial class V3_1 : Migration { - private readonly IElsaDbContextSchema _schema; + private readonly Elsa.EntityFrameworkCore.IElsaDbContextSchema _schema; /// - public V3_1(IElsaDbContextSchema schema) + public V3_1(Elsa.EntityFrameworkCore.IElsaDbContextSchema schema) { _schema = schema; } diff --git a/src/modules/Elsa.EntityFrameworkCore.Sqlite/Migrations/Runtime/20240610184731_V3_2.cs b/src/modules/Elsa.EntityFrameworkCore.Sqlite/Migrations/Runtime/20240610184731_V3_2.cs index af8aed20a..d84cfc43f 100644 --- a/src/modules/Elsa.EntityFrameworkCore.Sqlite/Migrations/Runtime/20240610184731_V3_2.cs +++ b/src/modules/Elsa.EntityFrameworkCore.Sqlite/Migrations/Runtime/20240610184731_V3_2.cs @@ -7,10 +7,10 @@ namespace Elsa.EntityFrameworkCore.Sqlite.Migrations.Runtime /// public partial class V3_2 : Migration { - private readonly IElsaDbContextSchema _schema; + private readonly Elsa.EntityFrameworkCore.IElsaDbContextSchema _schema; /// - public V3_2(IElsaDbContextSchema schema) + public V3_2(Elsa.EntityFrameworkCore.IElsaDbContextSchema schema) { _schema = schema; } diff --git a/src/modules/Elsa.EntityFrameworkCore.Sqlite/Migrations/Runtime/20241212211658_V3_3.Designer.cs b/src/modules/Elsa.EntityFrameworkCore.Sqlite/Migrations/Runtime/20241231122946_V3_3.Designer.cs similarity index 98% rename from src/modules/Elsa.EntityFrameworkCore.Sqlite/Migrations/Runtime/20241212211658_V3_3.Designer.cs rename to src/modules/Elsa.EntityFrameworkCore.Sqlite/Migrations/Runtime/20241231122946_V3_3.Designer.cs index 097593805..904170343 100644 --- a/src/modules/Elsa.EntityFrameworkCore.Sqlite/Migrations/Runtime/20241212211658_V3_3.Designer.cs +++ b/src/modules/Elsa.EntityFrameworkCore.Sqlite/Migrations/Runtime/20241231122946_V3_3.Designer.cs @@ -11,14 +11,14 @@ using Microsoft.EntityFrameworkCore.Storage.ValueConversion; namespace Elsa.EntityFrameworkCore.Sqlite.Migrations.Runtime { [DbContext(typeof(RuntimeElsaDbContext))] - [Migration("20241212211658_V3_3")] + [Migration("20241231122946_V3_3")] partial class V3_3 { /// protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 - modelBuilder.HasAnnotation("ProductVersion", "7.0.20"); + modelBuilder.HasAnnotation("ProductVersion", "9.0.0"); modelBuilder.Entity("Elsa.KeyValues.Entities.SerializedKeyValuePair", b => { @@ -210,10 +210,6 @@ namespace Elsa.EntityFrameworkCore.Sqlite.Migrations.Runtime .IsRequired() .HasColumnType("TEXT"); - b.Property("BookmarkId") - .IsRequired() - .HasColumnType("TEXT"); - b.Property("CorrelationId") .HasColumnType("TEXT"); diff --git a/src/modules/Elsa.EntityFrameworkCore.Sqlite/Migrations/Runtime/20241212211658_V3_3.cs b/src/modules/Elsa.EntityFrameworkCore.Sqlite/Migrations/Runtime/20241231122946_V3_3.cs similarity index 91% rename from src/modules/Elsa.EntityFrameworkCore.Sqlite/Migrations/Runtime/20241212211658_V3_3.cs rename to src/modules/Elsa.EntityFrameworkCore.Sqlite/Migrations/Runtime/20241231122946_V3_3.cs index 193c3a8dc..4490f83bd 100644 --- a/src/modules/Elsa.EntityFrameworkCore.Sqlite/Migrations/Runtime/20241212211658_V3_3.cs +++ b/src/modules/Elsa.EntityFrameworkCore.Sqlite/Migrations/Runtime/20241231122946_V3_3.cs @@ -23,9 +23,10 @@ namespace Elsa.EntityFrameworkCore.Sqlite.Migrations.Runtime name: "PK_KeyValuePairs", table: "KeyValuePairs"); - migrationBuilder.DropPrimaryKey( - name: "PK_Bookmarks", - table: "Bookmarks"); + migrationBuilder.RenameColumn( + name: "BookmarkId", + table: "Bookmarks", + newName: "Id"); migrationBuilder.AddColumn( name: "TenantId", @@ -58,13 +59,6 @@ namespace Elsa.EntityFrameworkCore.Sqlite.Migrations.Runtime type: "TEXT", nullable: true); - migrationBuilder.AddColumn( - name: "Id", - table: "Bookmarks", - type: "TEXT", - nullable: false, - defaultValue: ""); - migrationBuilder.AddColumn( name: "TenantId", table: "Bookmarks", @@ -82,11 +76,6 @@ namespace Elsa.EntityFrameworkCore.Sqlite.Migrations.Runtime table: "KeyValuePairs", column: "Id"); - migrationBuilder.AddPrimaryKey( - name: "PK_Bookmarks", - table: "Bookmarks", - column: "Id"); - migrationBuilder.CreateTable( name: "BookmarkQueueItems", columns: table => new @@ -195,10 +184,6 @@ namespace Elsa.EntityFrameworkCore.Sqlite.Migrations.Runtime name: "IX_SerializedKeyValuePair_TenantId", table: "KeyValuePairs"); - migrationBuilder.DropPrimaryKey( - name: "PK_Bookmarks", - table: "Bookmarks"); - migrationBuilder.DropIndex( name: "IX_StoredBookmark_TenantId", table: "Bookmarks"); @@ -227,10 +212,6 @@ namespace Elsa.EntityFrameworkCore.Sqlite.Migrations.Runtime name: "TenantId", table: "KeyValuePairs"); - migrationBuilder.DropColumn( - name: "Id", - table: "Bookmarks"); - migrationBuilder.DropColumn( name: "TenantId", table: "Bookmarks"); @@ -239,15 +220,15 @@ namespace Elsa.EntityFrameworkCore.Sqlite.Migrations.Runtime name: "TenantId", table: "ActivityExecutionRecords"); + migrationBuilder.RenameColumn( + name: "Id", + table: "Bookmarks", + newName: "BookmarkId"); + migrationBuilder.AddPrimaryKey( name: "PK_KeyValuePairs", table: "KeyValuePairs", column: "Key"); - - migrationBuilder.AddPrimaryKey( - name: "PK_Bookmarks", - table: "Bookmarks", - column: "BookmarkId"); } } } diff --git a/src/modules/Elsa.EntityFrameworkCore.Sqlite/Migrations/Runtime/RuntimeElsaDbContextModelSnapshot.cs b/src/modules/Elsa.EntityFrameworkCore.Sqlite/Migrations/Runtime/RuntimeElsaDbContextModelSnapshot.cs index 16fbb9bcd..21a5c53c9 100644 --- a/src/modules/Elsa.EntityFrameworkCore.Sqlite/Migrations/Runtime/RuntimeElsaDbContextModelSnapshot.cs +++ b/src/modules/Elsa.EntityFrameworkCore.Sqlite/Migrations/Runtime/RuntimeElsaDbContextModelSnapshot.cs @@ -15,7 +15,7 @@ namespace Elsa.EntityFrameworkCore.Sqlite.Migrations.Runtime protected override void BuildModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 - modelBuilder.HasAnnotation("ProductVersion", "7.0.20"); + modelBuilder.HasAnnotation("ProductVersion", "9.0.0"); modelBuilder.Entity("Elsa.KeyValues.Entities.SerializedKeyValuePair", b => { @@ -207,10 +207,6 @@ namespace Elsa.EntityFrameworkCore.Sqlite.Migrations.Runtime .IsRequired() .HasColumnType("TEXT"); - b.Property("BookmarkId") - .IsRequired() - .HasColumnType("TEXT"); - b.Property("CorrelationId") .HasColumnType("TEXT"); diff --git a/src/modules/Elsa.Secrets.Persistence.EntityFrameworkCore.PostgreSql/efcore-3.3.sh b/src/modules/Elsa.Secrets.Persistence.EntityFrameworkCore.PostgreSql/efcore-3.3.sh index 69fc0c617..dff83d4a2 100644 --- a/src/modules/Elsa.Secrets.Persistence.EntityFrameworkCore.PostgreSql/efcore-3.3.sh +++ b/src/modules/Elsa.Secrets.Persistence.EntityFrameworkCore.PostgreSql/efcore-3.3.sh @@ -1 +1 @@ -ef-migration-runtime-schema --interface Elsa.EntityFrameworkCore.Common.Contracts.IElsaDbContextSchema --efOptions "migrations add V3_3 -c SecretsDbContext -o Migrations" \ No newline at end of file +ef-migration-runtime-schema --interface Elsa.EntityFrameworkCore.IElsaDbContextSchema --efOptions "migrations add V3_3 -c SecretsDbContext -o Migrations" \ No newline at end of file diff --git a/src/modules/Elsa.Secrets.Persistence.EntityFrameworkCore.SqlServer/efcore-3.3.sh b/src/modules/Elsa.Secrets.Persistence.EntityFrameworkCore.SqlServer/efcore-3.3.sh index 69fc0c617..dff83d4a2 100644 --- a/src/modules/Elsa.Secrets.Persistence.EntityFrameworkCore.SqlServer/efcore-3.3.sh +++ b/src/modules/Elsa.Secrets.Persistence.EntityFrameworkCore.SqlServer/efcore-3.3.sh @@ -1 +1 @@ -ef-migration-runtime-schema --interface Elsa.EntityFrameworkCore.Common.Contracts.IElsaDbContextSchema --efOptions "migrations add V3_3 -c SecretsDbContext -o Migrations" \ No newline at end of file +ef-migration-runtime-schema --interface Elsa.EntityFrameworkCore.IElsaDbContextSchema --efOptions "migrations add V3_3 -c SecretsDbContext -o Migrations" \ No newline at end of file diff --git a/src/modules/Elsa.Secrets.Persistence.EntityFrameworkCore.Sqlite/efcore-3.3.sh b/src/modules/Elsa.Secrets.Persistence.EntityFrameworkCore.Sqlite/efcore-3.3.sh index 69fc0c617..dff83d4a2 100644 --- a/src/modules/Elsa.Secrets.Persistence.EntityFrameworkCore.Sqlite/efcore-3.3.sh +++ b/src/modules/Elsa.Secrets.Persistence.EntityFrameworkCore.Sqlite/efcore-3.3.sh @@ -1 +1 @@ -ef-migration-runtime-schema --interface Elsa.EntityFrameworkCore.Common.Contracts.IElsaDbContextSchema --efOptions "migrations add V3_3 -c SecretsDbContext -o Migrations" \ No newline at end of file +ef-migration-runtime-schema --interface Elsa.EntityFrameworkCore.IElsaDbContextSchema --efOptions "migrations add V3_3 -c SecretsDbContext -o Migrations" \ No newline at end of file diff --git a/src/modules/Elsa.Workflows.Runtime/Entities/StoredBookmark.cs b/src/modules/Elsa.Workflows.Runtime/Entities/StoredBookmark.cs index 8c44881ff..b34658e51 100644 --- a/src/modules/Elsa.Workflows.Runtime/Entities/StoredBookmark.cs +++ b/src/modules/Elsa.Workflows.Runtime/Entities/StoredBookmark.cs @@ -7,12 +7,6 @@ namespace Elsa.Workflows.Runtime.Entities; /// public class StoredBookmark : Entity { - [Obsolete("Use Id instead.")] public string BookmarkId - { - get => Id; - set => Id = value; - } - /// /// The name of the activity type associated with the bookmark. ///