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.
This commit is contained in:
parent
20f0134089
commit
69aacd654b
1
Elsa.sln
1
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}"
|
||||
|
|
|
|||
3
migrations/README.md
Executable file
3
migrations/README.md
Executable file
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
/// <inheritdoc />
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
|
|
@ -7,18 +7,26 @@ namespace Elsa.EntityFrameworkCore.MySql.Migrations.Alterations
|
|||
/// <inheritdoc />
|
||||
public partial class V3_1 : Migration
|
||||
{
|
||||
private readonly Elsa.EntityFrameworkCore.Common.Contracts.IElsaDbContextSchema _schema;
|
||||
|
||||
/// <inheritdoc />
|
||||
public V3_1(Elsa.EntityFrameworkCore.Common.Contracts.IElsaDbContextSchema schema)
|
||||
{
|
||||
_schema = schema;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "SerializedWorkflowInstanceIds",
|
||||
schema: "Elsa",
|
||||
schema: _schema.Schema,
|
||||
table: "AlterationPlans",
|
||||
newName: "SerializedWorkflowInstanceFilter");
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
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<string>(
|
||||
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<int>(
|
||||
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<int>(
|
||||
name: "Status",
|
||||
schema: "Elsa",
|
||||
schema: _schema.Schema,
|
||||
table: "AlterationJobs",
|
||||
type: "int",
|
||||
nullable: false,
|
||||
|
|
@ -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
|
||||
{
|
||||
/// <inheritdoc />
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
|
|
@ -7,6 +7,14 @@ namespace Elsa.EntityFrameworkCore.MySql.Migrations.Identity
|
|||
/// <inheritdoc />
|
||||
public partial class V3_1 : Migration
|
||||
{
|
||||
private readonly Elsa.EntityFrameworkCore.Common.Contracts.IElsaDbContextSchema _schema;
|
||||
|
||||
/// <inheritdoc />
|
||||
public V3_1(Elsa.EntityFrameworkCore.Common.Contracts.IElsaDbContextSchema schema)
|
||||
{
|
||||
_schema = schema;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
|
|
@ -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
|
||||
{
|
||||
/// <inheritdoc />
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
|
|
@ -7,6 +7,14 @@ namespace Elsa.EntityFrameworkCore.MySql.Migrations.Labels
|
|||
/// <inheritdoc />
|
||||
public partial class V3_1 : Migration
|
||||
{
|
||||
private readonly Elsa.EntityFrameworkCore.Common.Contracts.IElsaDbContextSchema _schema;
|
||||
|
||||
/// <inheritdoc />
|
||||
public V3_1(Elsa.EntityFrameworkCore.Common.Contracts.IElsaDbContextSchema schema)
|
||||
{
|
||||
_schema = schema;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
|
|
@ -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
|
||||
{
|
||||
/// <inheritdoc />
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
|
|
@ -7,12 +7,20 @@ namespace Elsa.EntityFrameworkCore.MySql.Migrations.Management
|
|||
/// <inheritdoc />
|
||||
public partial class V3_1 : Migration
|
||||
{
|
||||
private readonly Elsa.EntityFrameworkCore.Common.Contracts.IElsaDbContextSchema _schema;
|
||||
|
||||
/// <inheritdoc />
|
||||
public V3_1(Elsa.EntityFrameworkCore.Common.Contracts.IElsaDbContextSchema schema)
|
||||
{
|
||||
_schema = schema;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<string>(
|
||||
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<bool>(
|
||||
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<string>(
|
||||
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<bool>(
|
||||
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");
|
||||
}
|
||||
}
|
||||
|
|
@ -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
|
||||
{
|
||||
/// <inheritdoc />
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
|
|
@ -7,12 +7,20 @@ namespace Elsa.EntityFrameworkCore.MySql.Migrations.Runtime
|
|||
/// <inheritdoc />
|
||||
public partial class V3_1 : Migration
|
||||
{
|
||||
private readonly Elsa.EntityFrameworkCore.Common.Contracts.IElsaDbContextSchema _schema;
|
||||
|
||||
/// <inheritdoc />
|
||||
public V3_1(Elsa.EntityFrameworkCore.Common.Contracts.IElsaDbContextSchema schema)
|
||||
{
|
||||
_schema = schema;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<string>(
|
||||
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<string>(
|
||||
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<string>(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");
|
||||
}
|
||||
}
|
||||
|
|
@ -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
|
||||
{
|
||||
/// <inheritdoc />
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
|
|
@ -7,18 +7,26 @@ namespace Elsa.EntityFrameworkCore.PostgreSql.Migrations.Alterations
|
|||
/// <inheritdoc />
|
||||
public partial class V3_1 : Migration
|
||||
{
|
||||
private readonly Elsa.EntityFrameworkCore.Common.Contracts.IElsaDbContextSchema _schema;
|
||||
|
||||
/// <inheritdoc />
|
||||
public V3_1(Elsa.EntityFrameworkCore.Common.Contracts.IElsaDbContextSchema schema)
|
||||
{
|
||||
_schema = schema;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "SerializedWorkflowInstanceIds",
|
||||
schema: "Elsa",
|
||||
schema: _schema.Schema,
|
||||
table: "AlterationPlans",
|
||||
newName: "SerializedWorkflowInstanceFilter");
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
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<string>(
|
||||
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<int>(
|
||||
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<int>(
|
||||
name: "Status",
|
||||
schema: "Elsa",
|
||||
schema: _schema.Schema,
|
||||
table: "AlterationJobs",
|
||||
type: "integer",
|
||||
nullable: false,
|
||||
|
|
@ -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
|
||||
{
|
||||
/// <inheritdoc />
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
|
|
@ -7,6 +7,14 @@ namespace Elsa.EntityFrameworkCore.PostgreSql.Migrations.Identity
|
|||
/// <inheritdoc />
|
||||
public partial class V3_1 : Migration
|
||||
{
|
||||
private readonly Elsa.EntityFrameworkCore.Common.Contracts.IElsaDbContextSchema _schema;
|
||||
|
||||
/// <inheritdoc />
|
||||
public V3_1(Elsa.EntityFrameworkCore.Common.Contracts.IElsaDbContextSchema schema)
|
||||
{
|
||||
_schema = schema;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
|
|
@ -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
|
||||
{
|
||||
/// <inheritdoc />
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
|
|
@ -7,6 +7,14 @@ namespace Elsa.EntityFrameworkCore.PostgreSql.Migrations.Labels
|
|||
/// <inheritdoc />
|
||||
public partial class V3_1 : Migration
|
||||
{
|
||||
private readonly Elsa.EntityFrameworkCore.Common.Contracts.IElsaDbContextSchema _schema;
|
||||
|
||||
/// <inheritdoc />
|
||||
public V3_1(Elsa.EntityFrameworkCore.Common.Contracts.IElsaDbContextSchema schema)
|
||||
{
|
||||
_schema = schema;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
|
|
@ -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
|
||||
{
|
||||
/// <inheritdoc />
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
|
|
@ -7,19 +7,27 @@ namespace Elsa.EntityFrameworkCore.PostgreSql.Migrations.Management
|
|||
/// <inheritdoc />
|
||||
public partial class V3_1 : Migration
|
||||
{
|
||||
private readonly Elsa.EntityFrameworkCore.Common.Contracts.IElsaDbContextSchema _schema;
|
||||
|
||||
/// <inheritdoc />
|
||||
public V3_1(Elsa.EntityFrameworkCore.Common.Contracts.IElsaDbContextSchema schema)
|
||||
{
|
||||
_schema = schema;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "DataCompressionAlgorithm",
|
||||
schema: "Elsa",
|
||||
schema: _schema.Schema,
|
||||
table: "WorkflowInstances",
|
||||
type: "text",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<bool>(
|
||||
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<string>(
|
||||
name: "ParentWorkflowInstanceId",
|
||||
schema: "Elsa",
|
||||
schema: _schema.Schema,
|
||||
table: "WorkflowInstances",
|
||||
type: "text",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<bool>(
|
||||
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");
|
||||
}
|
||||
}
|
||||
|
|
@ -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
|
||||
{
|
||||
/// <inheritdoc />
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
|
|
@ -7,26 +7,34 @@ namespace Elsa.EntityFrameworkCore.PostgreSql.Migrations.Runtime
|
|||
/// <inheritdoc />
|
||||
public partial class V3_1 : Migration
|
||||
{
|
||||
private readonly Elsa.EntityFrameworkCore.Common.Contracts.IElsaDbContextSchema _schema;
|
||||
|
||||
/// <inheritdoc />
|
||||
public V3_1(Elsa.EntityFrameworkCore.Common.Contracts.IElsaDbContextSchema schema)
|
||||
{
|
||||
_schema = schema;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "SerializedActivityStateCompressionAlgorithm",
|
||||
schema: "Elsa",
|
||||
schema: _schema.Schema,
|
||||
table: "ActivityExecutionRecords",
|
||||
type: "text",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
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<string>(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");
|
||||
}
|
||||
}
|
||||
|
|
@ -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
|
||||
{
|
||||
/// <inheritdoc />
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
|
|
@ -7,18 +7,26 @@ namespace Elsa.EntityFrameworkCore.SqlServer.Migrations.Alterations
|
|||
/// <inheritdoc />
|
||||
public partial class V3_1 : Migration
|
||||
{
|
||||
private readonly Elsa.EntityFrameworkCore.Common.Contracts.IElsaDbContextSchema _schema;
|
||||
|
||||
/// <inheritdoc />
|
||||
public V3_1(Elsa.EntityFrameworkCore.Common.Contracts.IElsaDbContextSchema schema)
|
||||
{
|
||||
_schema = schema;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "SerializedWorkflowInstanceIds",
|
||||
schema: "Elsa",
|
||||
schema: _schema.Schema,
|
||||
table: "AlterationPlans",
|
||||
newName: "SerializedWorkflowInstanceFilter");
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
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<string>(
|
||||
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<int>(
|
||||
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<int>(
|
||||
name: "Status",
|
||||
schema: "Elsa",
|
||||
schema: _schema.Schema,
|
||||
table: "AlterationJobs",
|
||||
type: "int",
|
||||
nullable: false,
|
||||
|
|
@ -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
|
||||
{
|
||||
/// <inheritdoc />
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
|
|
@ -7,6 +7,14 @@ namespace Elsa.EntityFrameworkCore.SqlServer.Migrations.Identity
|
|||
/// <inheritdoc />
|
||||
public partial class V3_1 : Migration
|
||||
{
|
||||
private readonly Elsa.EntityFrameworkCore.Common.Contracts.IElsaDbContextSchema _schema;
|
||||
|
||||
/// <inheritdoc />
|
||||
public V3_1(Elsa.EntityFrameworkCore.Common.Contracts.IElsaDbContextSchema schema)
|
||||
{
|
||||
_schema = schema;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
|
|
@ -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
|
||||
{
|
||||
/// <inheritdoc />
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
|
|
@ -7,6 +7,14 @@ namespace Elsa.EntityFrameworkCore.SqlServer.Migrations.Labels
|
|||
/// <inheritdoc />
|
||||
public partial class V3_1 : Migration
|
||||
{
|
||||
private readonly Elsa.EntityFrameworkCore.Common.Contracts.IElsaDbContextSchema _schema;
|
||||
|
||||
/// <inheritdoc />
|
||||
public V3_1(Elsa.EntityFrameworkCore.Common.Contracts.IElsaDbContextSchema schema)
|
||||
{
|
||||
_schema = schema;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
|
|
@ -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
|
||||
{
|
||||
/// <inheritdoc />
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
|
|
@ -7,19 +7,27 @@ namespace Elsa.EntityFrameworkCore.SqlServer.Migrations.Management
|
|||
/// <inheritdoc />
|
||||
public partial class V3_1 : Migration
|
||||
{
|
||||
private readonly Elsa.EntityFrameworkCore.Common.Contracts.IElsaDbContextSchema _schema;
|
||||
|
||||
/// <inheritdoc />
|
||||
public V3_1(Elsa.EntityFrameworkCore.Common.Contracts.IElsaDbContextSchema schema)
|
||||
{
|
||||
_schema = schema;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "DataCompressionAlgorithm",
|
||||
schema: "Elsa",
|
||||
schema: _schema.Schema,
|
||||
table: "WorkflowInstances",
|
||||
type: "nvarchar(max)",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<bool>(
|
||||
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<string>(
|
||||
name: "ParentWorkflowInstanceId",
|
||||
schema: "Elsa",
|
||||
schema: _schema.Schema,
|
||||
table: "WorkflowInstances",
|
||||
type: "nvarchar(max)",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<bool>(
|
||||
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");
|
||||
}
|
||||
}
|
||||
|
|
@ -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
|
||||
{
|
||||
/// <inheritdoc />
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
|
|
@ -7,26 +7,34 @@ namespace Elsa.EntityFrameworkCore.SqlServer.Migrations.Runtime
|
|||
/// <inheritdoc />
|
||||
public partial class V3_1 : Migration
|
||||
{
|
||||
private readonly Elsa.EntityFrameworkCore.Common.Contracts.IElsaDbContextSchema _schema;
|
||||
|
||||
/// <inheritdoc />
|
||||
public V3_1(Elsa.EntityFrameworkCore.Common.Contracts.IElsaDbContextSchema schema)
|
||||
{
|
||||
_schema = schema;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "SerializedActivityStateCompressionAlgorithm",
|
||||
schema: "Elsa",
|
||||
schema: _schema.Schema,
|
||||
table: "ActivityExecutionRecords",
|
||||
type: "nvarchar(max)",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
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<string>(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");
|
||||
}
|
||||
}
|
||||
|
|
@ -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
|
||||
{
|
||||
/// <inheritdoc />
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
|
|
@ -7,6 +7,14 @@ namespace Elsa.EntityFrameworkCore.Sqlite.Migrations.Alterations
|
|||
/// <inheritdoc />
|
||||
public partial class V3_1 : Migration
|
||||
{
|
||||
private readonly Elsa.EntityFrameworkCore.Common.Contracts.IElsaDbContextSchema _schema;
|
||||
|
||||
/// <inheritdoc />
|
||||
public V3_1(Elsa.EntityFrameworkCore.Common.Contracts.IElsaDbContextSchema schema)
|
||||
{
|
||||
_schema = schema;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
|
|
@ -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
|
||||
{
|
||||
/// <inheritdoc />
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
|
|
@ -7,6 +7,14 @@ namespace Elsa.EntityFrameworkCore.Sqlite.Migrations.Identity
|
|||
/// <inheritdoc />
|
||||
public partial class V3_1 : Migration
|
||||
{
|
||||
private readonly Elsa.EntityFrameworkCore.Common.Contracts.IElsaDbContextSchema _schema;
|
||||
|
||||
/// <inheritdoc />
|
||||
public V3_1(Elsa.EntityFrameworkCore.Common.Contracts.IElsaDbContextSchema schema)
|
||||
{
|
||||
_schema = schema;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
|
|
@ -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
|
||||
{
|
||||
/// <inheritdoc />
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
|
|
@ -7,6 +7,14 @@ namespace Elsa.EntityFrameworkCore.Sqlite.Migrations.Labels
|
|||
/// <inheritdoc />
|
||||
public partial class V3_1 : Migration
|
||||
{
|
||||
private readonly Elsa.EntityFrameworkCore.Common.Contracts.IElsaDbContextSchema _schema;
|
||||
|
||||
/// <inheritdoc />
|
||||
public V3_1(Elsa.EntityFrameworkCore.Common.Contracts.IElsaDbContextSchema schema)
|
||||
{
|
||||
_schema = schema;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
|
|
@ -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
|
||||
{
|
||||
/// <inheritdoc />
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
|
|
@ -7,6 +7,14 @@ namespace Elsa.EntityFrameworkCore.Sqlite.Migrations.Management
|
|||
/// <inheritdoc />
|
||||
public partial class V3_1 : Migration
|
||||
{
|
||||
private readonly Elsa.EntityFrameworkCore.Common.Contracts.IElsaDbContextSchema _schema;
|
||||
|
||||
/// <inheritdoc />
|
||||
public V3_1(Elsa.EntityFrameworkCore.Common.Contracts.IElsaDbContextSchema schema)
|
||||
{
|
||||
_schema = schema;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
|
|
@ -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
|
||||
{
|
||||
/// <inheritdoc />
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
|
|
@ -7,6 +7,14 @@ namespace Elsa.EntityFrameworkCore.Sqlite.Migrations.Runtime
|
|||
/// <inheritdoc />
|
||||
public partial class V3_1 : Migration
|
||||
{
|
||||
private readonly Elsa.EntityFrameworkCore.Common.Contracts.IElsaDbContextSchema _schema;
|
||||
|
||||
/// <inheritdoc />
|
||||
public V3_1(Elsa.EntityFrameworkCore.Common.Contracts.IElsaDbContextSchema schema)
|
||||
{
|
||||
_schema = schema;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
Loading…
Reference in a new issue