Skip to content

Commit

Permalink
fix migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
or2e committed Jan 21, 2024
1 parent e5bd718 commit 685a422
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 22 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,29 +1,26 @@
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable
namespace Crpg.Persistence.Migrations;

namespace Crpg.Persistence.Migrations
/// <inheritdoc />
public partial class AddRestrictionPublicReason : Migration
{
/// <inheritdoc />
public partial class AddRestrictionPublicReason : Migration
protected override void Up(MigrationBuilder migrationBuilder)
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "public_reason",
table: "restrictions",
type: "text",
nullable: false,
defaultValue: "");
}
migrationBuilder.AddColumn<string>(
name: "public_reason",
table: "restrictions",
type: "text",
nullable: false,
defaultValue: string.Empty);
}

/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "public_reason",
table: "restrictions");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "public_reason",
table: "restrictions");
}
}

0 comments on commit 685a422

Please sign in to comment.