Skip to content

Commit

Permalink
add db migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
elasticroentgen committed Oct 25, 2024
1 parent 9c63003 commit 7c65f09
Show file tree
Hide file tree
Showing 3 changed files with 223 additions and 0 deletions.
191 changes: 191 additions & 0 deletions Migrations/20241025073504_add-stuckreplacement-flag.Designer.cs

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

29 changes: 29 additions & 0 deletions Migrations/20241025073504_add-stuckreplacement-flag.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace GithubActionsOrchestrator.Migrations
{
/// <inheritdoc />
public partial class addstuckreplacementflag : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<bool>(
name: "StuckJobReplacement",
table: "Runners",
type: "boolean",
nullable: false,
defaultValue: false);
}

/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "StuckJobReplacement",
table: "Runners");
}
}
}
3 changes: 3 additions & 0 deletions Migrations/ActionsRunnerContextModelSnapshot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,9 @@ protected override void BuildModel(ModelBuilder modelBuilder)
b.Property<string>("Size")
.HasColumnType("text");
b.Property<bool>("StuckJobReplacement")
.HasColumnType("boolean");
b.HasKey("RunnerId");
b.HasIndex("JobId")
Expand Down

0 comments on commit 7c65f09

Please sign in to comment.