Skip to content

Commit

Permalink
fix warnings in migration files
Browse files Browse the repository at this point in the history
  • Loading branch information
adelikat committed Dec 16, 2024
1 parent 87dcef8 commit 657a78a
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,10 @@ public partial class RemoveAllStringLengths : Migration
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{

}

/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{

}
}
57 changes: 28 additions & 29 deletions TASVideos.Data/Migrations/20241201203944_AddSubmissionHash.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,37 +2,36 @@

#nullable disable

namespace TASVideos.Data.Migrations
namespace TASVideos.Data.Migrations;

/// <inheritdoc />
public partial class AddSubmissionHash : Migration
{
/// <inheritdoc />
public partial class AddSubmissionHash : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "hash",
table: "submissions",
type: "citext",
nullable: true);
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "hash",
table: "submissions",
type: "citext",
nullable: true);

migrationBuilder.AddColumn<string>(
name: "hash_type",
table: "submissions",
type: "citext",
nullable: true);
}
migrationBuilder.AddColumn<string>(
name: "hash_type",
table: "submissions",
type: "citext",
nullable: true);
}

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

migrationBuilder.DropColumn(
name: "hash_type",
table: "submissions");
}
}
migrationBuilder.DropColumn(
name: "hash_type",
table: "submissions");
}
}

0 comments on commit 657a78a

Please sign in to comment.