using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace EntKube.Web.Data.Migrations.Sqlite
{
///
public partial class AddComponentLifecycleFields : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn(
name: "HelmChartName",
table: "ClusterComponents",
type: "TEXT",
nullable: true);
migrationBuilder.AddColumn(
name: "HelmChartVersion",
table: "ClusterComponents",
type: "TEXT",
nullable: true);
migrationBuilder.AddColumn(
name: "HelmRepoUrl",
table: "ClusterComponents",
type: "TEXT",
nullable: true);
migrationBuilder.AddColumn(
name: "HelmValues",
table: "ClusterComponents",
type: "TEXT",
nullable: true);
migrationBuilder.AddColumn(
name: "InstalledAt",
table: "ClusterComponents",
type: "TEXT",
nullable: true);
migrationBuilder.AddColumn(
name: "LastError",
table: "ClusterComponents",
type: "TEXT",
nullable: true);
migrationBuilder.AddColumn(
name: "Namespace",
table: "ClusterComponents",
type: "TEXT",
nullable: true);
migrationBuilder.AddColumn(
name: "ReleaseName",
table: "ClusterComponents",
type: "TEXT",
nullable: true);
migrationBuilder.AddColumn(
name: "Status",
table: "ClusterComponents",
type: "INTEGER",
nullable: false,
defaultValue: 0);
}
///
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");
}
}
}