Files

46 lines
1.4 KiB
C#

using System.Collections.Generic;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Cleanuparr.Persistence.Postgres.Migrations.Data
{
/// <inheritdoc />
public partial class AddConnectivityCheck : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<bool>(
name: "connectivity_check_enabled",
schema: "data",
table: "general_configs",
type: "boolean",
nullable: false,
defaultValue: false);
migrationBuilder.AddColumn<List<string>>(
name: "connectivity_check_urls",
schema: "data",
table: "general_configs",
type: "text[]",
nullable: false,
defaultValueSql: "'{}'::text[]");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "connectivity_check_enabled",
schema: "data",
table: "general_configs");
migrationBuilder.DropColumn(
name: "connectivity_check_urls",
schema: "data",
table: "general_configs");
}
}
}