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