Migrations fix
This commit is contained in:
@@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user