From 6268ceb79392af7e2d951011f377c8e28686c773 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anders=20Chirico=20Indreb=C3=B8?= Date: Mon, 18 Sep 2023 15:28:14 +0200 Subject: [PATCH] Remove redundant migration actions --- ...0230830075517_RemoveInspectionFrequency.cs | 90 ------------------- 1 file changed, 90 deletions(-) diff --git a/backend/api/Migrations/20230830075517_RemoveInspectionFrequency.cs b/backend/api/Migrations/20230830075517_RemoveInspectionFrequency.cs index f91ab340a..c33efe41f 100644 --- a/backend/api/Migrations/20230830075517_RemoveInspectionFrequency.cs +++ b/backend/api/Migrations/20230830075517_RemoveInspectionFrequency.cs @@ -14,106 +14,16 @@ protected override void Up(MigrationBuilder migrationBuilder) migrationBuilder.DropColumn( name: "InspectionFrequency", table: "MissionDefinitions"); - - migrationBuilder.AlterColumn( - name: "InstallationId", - table: "Plants", - type: "nvarchar(450)", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(450)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "PlantId", - table: "Decks", - type: "nvarchar(450)", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(450)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "InstallationId", - table: "Decks", - type: "nvarchar(450)", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(450)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "PlantId", - table: "Areas", - type: "nvarchar(450)", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(450)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "InstallationId", - table: "Areas", - type: "nvarchar(450)", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(450)", - oldNullable: true); } /// protected override void Down(MigrationBuilder migrationBuilder) { - migrationBuilder.AlterColumn( - name: "InstallationId", - table: "Plants", - type: "nvarchar(450)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(450)"); - migrationBuilder.AddColumn( name: "InspectionFrequency", table: "MissionDefinitions", type: "time", nullable: true); - - migrationBuilder.AlterColumn( - name: "PlantId", - table: "Decks", - type: "nvarchar(450)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(450)"); - - migrationBuilder.AlterColumn( - name: "InstallationId", - table: "Decks", - type: "nvarchar(450)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(450)"); - - migrationBuilder.AlterColumn( - name: "PlantId", - table: "Areas", - type: "nvarchar(450)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(450)"); - - migrationBuilder.AlterColumn( - name: "InstallationId", - table: "Areas", - type: "nvarchar(450)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(450)"); } } }