Migrations fix
This commit is contained in:
@@ -10,7 +10,7 @@ using DiunaBI.Infrastructure.Data;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace DiunaBI.Core.Migrations
|
||||
namespace DiunaBI.Infrastructure.Migrations
|
||||
{
|
||||
[DbContext(typeof(AppDbContext))]
|
||||
[Migration("20221205190148_Initial")]
|
||||
|
||||
@@ -10,7 +10,7 @@ using DiunaBI.Infrastructure.Data;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace DiunaBI.Core.Migrations
|
||||
namespace DiunaBI.Infrastructure.Migrations
|
||||
{
|
||||
[DbContext(typeof(AppDbContext))]
|
||||
[Migration("20221211210507_DataSetsAndDataRows")]
|
||||
|
||||
@@ -10,7 +10,7 @@ using DiunaBI.Infrastructure.Data;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace DiunaBI.Core.Migrations
|
||||
namespace DiunaBI.Infrastructure.Migrations
|
||||
{
|
||||
[DbContext(typeof(AppDbContext))]
|
||||
[Migration("20221219163620_RenameFields")]
|
||||
|
||||
@@ -10,7 +10,7 @@ using DiunaBI.Infrastructure.Data;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace DiunaBI.Core.Migrations
|
||||
namespace DiunaBI.Infrastructure.Migrations
|
||||
{
|
||||
[DbContext(typeof(AppDbContext))]
|
||||
[Migration("20221221165749_DataSetIdOnDataRow")]
|
||||
|
||||
@@ -15,6 +15,11 @@ namespace DiunaBI.Infrastructure.Migrations
|
||||
name: "FK_DataRows_DataSets_DataSetId",
|
||||
table: "DataRows");
|
||||
|
||||
// DODAJ: Usuń index przed zmianą kolumny
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_DataRows_DataSetId",
|
||||
table: "DataRows");
|
||||
|
||||
migrationBuilder.AlterColumn<Guid>(
|
||||
name: "DataSetId",
|
||||
table: "DataRows",
|
||||
@@ -25,6 +30,12 @@ namespace DiunaBI.Infrastructure.Migrations
|
||||
oldType: "uniqueidentifier",
|
||||
oldNullable: true);
|
||||
|
||||
// DODAJ: Odtwórz index po zmianie kolumny
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_DataRows_DataSetId",
|
||||
table: "DataRows",
|
||||
column: "DataSetId");
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_DataRows_DataSets_DataSetId",
|
||||
table: "DataRows",
|
||||
@@ -41,6 +52,10 @@ namespace DiunaBI.Infrastructure.Migrations
|
||||
name: "FK_DataRows_DataSets_DataSetId",
|
||||
table: "DataRows");
|
||||
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_DataRows_DataSetId",
|
||||
table: "DataRows");
|
||||
|
||||
migrationBuilder.AlterColumn<Guid>(
|
||||
name: "DataSetId",
|
||||
table: "DataRows",
|
||||
@@ -48,6 +63,11 @@ namespace DiunaBI.Infrastructure.Migrations
|
||||
nullable: true,
|
||||
oldClrType: typeof(Guid),
|
||||
oldType: "uniqueidentifier");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_DataRows_DataSetId",
|
||||
table: "DataRows",
|
||||
column: "DataSetId");
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_DataRows_DataSets_DataSetId",
|
||||
@@ -57,4 +77,4 @@ namespace DiunaBI.Infrastructure.Migrations
|
||||
principalColumn: "Id");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -10,7 +10,7 @@ using DiunaBI.Infrastructure.Data;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace DiunaBI.Core.Migrations
|
||||
namespace DiunaBI.Infrastructure.Migrations
|
||||
{
|
||||
[DbContext(typeof(AppDbContext))]
|
||||
[Migration("20230106095427_RenameModels")]
|
||||
|
||||
@@ -10,7 +10,7 @@ using DiunaBI.Infrastructure.Data;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace DiunaBI.Core.Migrations
|
||||
namespace DiunaBI.Infrastructure.Migrations
|
||||
{
|
||||
[DbContext(typeof(AppDbContext))]
|
||||
[Migration("20230626171614_LayerType")]
|
||||
|
||||
@@ -10,7 +10,7 @@ using DiunaBI.Infrastructure.Data;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace DiunaBI.Core.Migrations
|
||||
namespace DiunaBI.Infrastructure.Migrations
|
||||
{
|
||||
[DbContext(typeof(AppDbContext))]
|
||||
[Migration("20230821105757_Record.Values")]
|
||||
|
||||
@@ -10,7 +10,7 @@ using DiunaBI.Infrastructure.Data;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace DiunaBI.Core.Migrations
|
||||
namespace DiunaBI.Infrastructure.Migrations
|
||||
{
|
||||
[DbContext(typeof(AppDbContext))]
|
||||
[Migration("20230917110252_Layer.parent")]
|
||||
|
||||
@@ -10,7 +10,7 @@ using DiunaBI.Infrastructure.Data;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace DiunaBI.Core.Migrations
|
||||
namespace DiunaBI.Infrastructure.Migrations
|
||||
{
|
||||
[DbContext(typeof(AppDbContext))]
|
||||
[Migration("20230918090621_ProcessSource")]
|
||||
|
||||
@@ -11,7 +11,7 @@ using DiunaBI.Infrastructure.Data;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace DiunaBI.Core.Migrations
|
||||
namespace DiunaBI.Infrastructure.Migrations
|
||||
{
|
||||
[DbContext(typeof(AppDbContext))]
|
||||
[Migration("20230918093055_TypeO")]
|
||||
|
||||
@@ -10,7 +10,7 @@ using DiunaBI.Infrastructure.Data;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace DiunaBI.Core.Migrations
|
||||
namespace DiunaBI.Infrastructure.Migrations
|
||||
{
|
||||
[DbContext(typeof(AppDbContext))]
|
||||
[Migration("20231030142419_Record.Value32")]
|
||||
|
||||
@@ -10,7 +10,7 @@ using DiunaBI.Infrastructure.Data;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace DiunaBI.Core.Migrations
|
||||
namespace DiunaBI.Infrastructure.Migrations
|
||||
{
|
||||
[DbContext(typeof(AppDbContext))]
|
||||
[Migration("20240309075645_Change record value type")]
|
||||
|
||||
@@ -10,7 +10,7 @@ using DiunaBI.Infrastructure.Data;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace DiunaBI.Core.Migrations
|
||||
namespace DiunaBI.Infrastructure.Migrations
|
||||
{
|
||||
[DbContext(typeof(AppDbContext))]
|
||||
[Migration("20240703171630_AfterCodeRefactor")]
|
||||
|
||||
@@ -10,7 +10,7 @@ using DiunaBI.Infrastructure.Data;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace DiunaBI.Core.Migrations
|
||||
namespace DiunaBI.Infrastructure.Migrations
|
||||
{
|
||||
[DbContext(typeof(AppDbContext))]
|
||||
[Migration("20240703173337_DataInboxModel")]
|
||||
|
||||
@@ -10,7 +10,7 @@ using DiunaBI.Infrastructure.Data;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace DiunaBI.Core.Migrations
|
||||
namespace DiunaBI.Infrastructure.Migrations
|
||||
{
|
||||
[DbContext(typeof(AppDbContext))]
|
||||
[Migration("20240825144443_QueueJobs")]
|
||||
|
||||
@@ -10,7 +10,7 @@ using DiunaBI.Infrastructure.Data;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace DiunaBI.Core.Migrations
|
||||
namespace DiunaBI.Infrastructure.Migrations
|
||||
{
|
||||
[DbContext(typeof(AppDbContext))]
|
||||
[Migration("20250317114722_LongerDesc1")]
|
||||
|
||||
@@ -10,7 +10,7 @@ using DiunaBI.Infrastructure.Data;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace DiunaBI.Core.Migrations
|
||||
namespace DiunaBI.Infrastructure.Migrations
|
||||
{
|
||||
[DbContext(typeof(AppDbContext))]
|
||||
[Migration("20250529093632_LayersIsCancelled")]
|
||||
|
||||
@@ -10,7 +10,7 @@ using DiunaBI.Infrastructure.Data;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace DiunaBI.Core.Migrations
|
||||
namespace DiunaBI.Infrastructure.Migrations
|
||||
{
|
||||
[DbContext(typeof(AppDbContext))]
|
||||
[Migration("20250607084540_QueueJobRefactor")]
|
||||
|
||||
@@ -10,7 +10,7 @@ using DiunaBI.Infrastructure.Data;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace DiunaBI.Core.Migrations
|
||||
namespace DiunaBI.Infrastructure.Migrations
|
||||
{
|
||||
[DbContext(typeof(AppDbContext))]
|
||||
[Migration("20250725133501_DataInbox.LayerId")]
|
||||
|
||||
@@ -10,7 +10,7 @@ using DiunaBI.Infrastructure.Data;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace DiunaBI.Core.Migrations
|
||||
namespace DiunaBI.Infrastructure.Migrations
|
||||
{
|
||||
[DbContext(typeof(AppDbContext))]
|
||||
[Migration("20250726091001_Remove DataInbox.LayerId")]
|
||||
|
||||
Reference in New Issue
Block a user