mirror of
https://github.com/Cleanuparr/Cleanuparr.git
synced 2026-09-13 13:58:20 -04:00
46 lines
1.4 KiB
C#
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");
|
|
}
|
|
}
|
|
}
|