mirror of
https://github.com/Cleanuparr/Cleanuparr.git
synced 2026-09-14 14:27:24 -04:00
32 lines
907 B
C#
32 lines
907 B
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace Cleanuparr.Persistence.Postgres.Migrations.Data
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class AddSlowRuleIgnoreAltSpeed : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<bool>(
|
|
name: "ignore_while_alt_speed_active",
|
|
schema: "data",
|
|
table: "slow_rules",
|
|
type: "boolean",
|
|
nullable: false,
|
|
defaultValue: true);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "ignore_while_alt_speed_active",
|
|
schema: "data",
|
|
table: "slow_rules");
|
|
}
|
|
}
|
|
}
|