feat(transport): EF migration AddBundleImportIdToAuditLog
This commit is contained in:
1663
src/ScadaLink.ConfigurationDatabase/Migrations/20260524075016_AddBundleImportIdToAuditLog.Designer.cs
generated
Normal file
1663
src/ScadaLink.ConfigurationDatabase/Migrations/20260524075016_AddBundleImportIdToAuditLog.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,38 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace ScadaLink.ConfigurationDatabase.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class AddBundleImportIdToAuditLog : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<Guid>(
|
||||
name: "BundleImportId",
|
||||
table: "AuditLogEntries",
|
||||
type: "uniqueidentifier",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_AuditLogEntries_BundleImportId",
|
||||
table: "AuditLogEntries",
|
||||
column: "BundleImportId");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_AuditLogEntries_BundleImportId",
|
||||
table: "AuditLogEntries");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "BundleImportId",
|
||||
table: "AuditLogEntries");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -196,6 +196,9 @@ namespace ScadaLink.ConfigurationDatabase.Migrations
|
||||
b.Property<string>("AfterStateJson")
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<Guid?>("BundleImportId")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<string>("EntityId")
|
||||
.IsRequired()
|
||||
.HasMaxLength(200)
|
||||
@@ -223,6 +226,9 @@ namespace ScadaLink.ConfigurationDatabase.Migrations
|
||||
|
||||
b.HasIndex("Action");
|
||||
|
||||
b.HasIndex("BundleImportId")
|
||||
.HasDatabaseName("IX_AuditLogEntries_BundleImportId");
|
||||
|
||||
b.HasIndex("EntityId");
|
||||
|
||||
b.HasIndex("EntityType");
|
||||
|
||||
Reference in New Issue
Block a user