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)"); } } }