Skip to content

Commit

Permalink
Fix migration style
Browse files Browse the repository at this point in the history
  • Loading branch information
MiraGeowerkstatt committed Aug 20, 2024
1 parent 271916b commit 46fe116
Showing 1 changed file with 19 additions and 20 deletions.
39 changes: 19 additions & 20 deletions src/api/Migrations/20240820131544_RemoveSupplierFromWorkgroup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,28 @@

#nullable disable

namespace BDMS.Migrations
namespace BDMS.Migrations;

/// <inheritdoc />
public partial class RemoveSupplierFromWorkgroup : Migration
{
/// <inheritdoc />
public partial class RemoveSupplierFromWorkgroup : Migration
protected override void Up(MigrationBuilder migrationBuilder)
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "supplier_wgp",
schema: "bdms",
table: "workgroups");
}
migrationBuilder.DropColumn(
name: "supplier_wgp",
schema: "bdms",
table: "workgroups");
}

/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<bool>(
name: "supplier_wgp",
schema: "bdms",
table: "workgroups",
type: "boolean",
nullable: true);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<bool>(
name: "supplier_wgp",
schema: "bdms",
table: "workgroups",
type: "boolean",
nullable: true);
}
}

0 comments on commit 46fe116

Please sign in to comment.