Skip to content

Commit

Permalink
Remove redundant migration actions
Browse files Browse the repository at this point in the history
  • Loading branch information
andchiind committed Sep 19, 2023
1 parent 4492f2b commit 6268ceb
Showing 1 changed file with 0 additions and 90 deletions.
90 changes: 0 additions & 90 deletions backend/api/Migrations/20230830075517_RemoveInspectionFrequency.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,106 +14,16 @@ protected override void Up(MigrationBuilder migrationBuilder)
migrationBuilder.DropColumn(
name: "InspectionFrequency",
table: "MissionDefinitions");

migrationBuilder.AlterColumn<string>(
name: "InstallationId",
table: "Plants",
type: "nvarchar(450)",
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "nvarchar(450)",
oldNullable: true);

migrationBuilder.AlterColumn<string>(
name: "PlantId",
table: "Decks",
type: "nvarchar(450)",
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "nvarchar(450)",
oldNullable: true);

migrationBuilder.AlterColumn<string>(
name: "InstallationId",
table: "Decks",
type: "nvarchar(450)",
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "nvarchar(450)",
oldNullable: true);

migrationBuilder.AlterColumn<string>(
name: "PlantId",
table: "Areas",
type: "nvarchar(450)",
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "nvarchar(450)",
oldNullable: true);

migrationBuilder.AlterColumn<string>(
name: "InstallationId",
table: "Areas",
type: "nvarchar(450)",
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "nvarchar(450)",
oldNullable: true);
}

/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "InstallationId",
table: "Plants",
type: "nvarchar(450)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(450)");

migrationBuilder.AddColumn<TimeSpan>(
name: "InspectionFrequency",
table: "MissionDefinitions",
type: "time",
nullable: true);

migrationBuilder.AlterColumn<string>(
name: "PlantId",
table: "Decks",
type: "nvarchar(450)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(450)");

migrationBuilder.AlterColumn<string>(
name: "InstallationId",
table: "Decks",
type: "nvarchar(450)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(450)");

migrationBuilder.AlterColumn<string>(
name: "PlantId",
table: "Areas",
type: "nvarchar(450)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(450)");

migrationBuilder.AlterColumn<string>(
name: "InstallationId",
table: "Areas",
type: "nvarchar(450)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(450)");
}
}
}

0 comments on commit 6268ceb

Please sign in to comment.