Files
Entkube/src/EntKube.Web/Data/Migrations/Postgres/20260516203719_AddComponentLifecycleFields.cs
2026-05-18 08:37:09 +02:00

111 lines
3.3 KiB
C#

using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace EntKube.Web.Data.Migrations.Postgres
{
/// <inheritdoc />
public partial class AddComponentLifecycleFields : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "HelmChartName",
table: "ClusterComponents",
type: "text",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "HelmChartVersion",
table: "ClusterComponents",
type: "text",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "HelmRepoUrl",
table: "ClusterComponents",
type: "text",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "HelmValues",
table: "ClusterComponents",
type: "text",
nullable: true);
migrationBuilder.AddColumn<DateTime>(
name: "InstalledAt",
table: "ClusterComponents",
type: "timestamp with time zone",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "LastError",
table: "ClusterComponents",
type: "text",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "Namespace",
table: "ClusterComponents",
type: "text",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "ReleaseName",
table: "ClusterComponents",
type: "text",
nullable: true);
migrationBuilder.AddColumn<int>(
name: "Status",
table: "ClusterComponents",
type: "integer",
nullable: false,
defaultValue: 0);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "HelmChartName",
table: "ClusterComponents");
migrationBuilder.DropColumn(
name: "HelmChartVersion",
table: "ClusterComponents");
migrationBuilder.DropColumn(
name: "HelmRepoUrl",
table: "ClusterComponents");
migrationBuilder.DropColumn(
name: "HelmValues",
table: "ClusterComponents");
migrationBuilder.DropColumn(
name: "InstalledAt",
table: "ClusterComponents");
migrationBuilder.DropColumn(
name: "LastError",
table: "ClusterComponents");
migrationBuilder.DropColumn(
name: "Namespace",
table: "ClusterComponents");
migrationBuilder.DropColumn(
name: "ReleaseName",
table: "ClusterComponents");
migrationBuilder.DropColumn(
name: "Status",
table: "ClusterComponents");
}
}
}