mirror of
https://github.com/Cleanuparr/Cleanuparr.git
synced 2026-10-28 10:48:49 -04:00
97 lines
2.9 KiB
C#
97 lines
2.9 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace Cleanuparr.Persistence.Postgres.Migrations.Data
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class AddSeedingRuleStopAction : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "action",
|
|
schema: "data",
|
|
table: "u_torrent_seeding_rules",
|
|
type: "text",
|
|
nullable: false,
|
|
defaultValue: "delete");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "action",
|
|
schema: "data",
|
|
table: "transmission_seeding_rules",
|
|
type: "text",
|
|
nullable: false,
|
|
defaultValue: "delete");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "action",
|
|
schema: "data",
|
|
table: "r_torrent_seeding_rules",
|
|
type: "text",
|
|
nullable: false,
|
|
defaultValue: "delete");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "action",
|
|
schema: "data",
|
|
table: "q_bit_seeding_rules",
|
|
type: "text",
|
|
nullable: false,
|
|
defaultValue: "delete");
|
|
|
|
migrationBuilder.AddColumn<bool>(
|
|
name: "on_download_stopped",
|
|
schema: "data",
|
|
table: "notification_configs",
|
|
type: "boolean",
|
|
nullable: false,
|
|
defaultValue: false);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "action",
|
|
schema: "data",
|
|
table: "deluge_seeding_rules",
|
|
type: "text",
|
|
nullable: false,
|
|
defaultValue: "delete");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "action",
|
|
schema: "data",
|
|
table: "u_torrent_seeding_rules");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "action",
|
|
schema: "data",
|
|
table: "transmission_seeding_rules");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "action",
|
|
schema: "data",
|
|
table: "r_torrent_seeding_rules");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "action",
|
|
schema: "data",
|
|
table: "q_bit_seeding_rules");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "on_download_stopped",
|
|
schema: "data",
|
|
table: "notification_configs");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "action",
|
|
schema: "data",
|
|
table: "deluge_seeding_rules");
|
|
}
|
|
}
|
|
}
|