Mark subproject as dirty in CMKS - Infra

This commit is contained in:
Nils Blomgren
2026-05-18 08:37:09 +02:00
parent 328d494530
commit 8b94fb8826
635 changed files with 81145 additions and 100551 deletions

View File

@@ -0,0 +1,73 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace EntKube.Web.Data.Migrations.Postgres
{
/// <inheritdoc />
public partial class AddStorageBindings : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "StorageBindings",
columns: table => new
{
Id = table.Column<Guid>(type: "uuid", nullable: false),
StorageLinkId = table.Column<Guid>(type: "uuid", nullable: false),
AppDeploymentId = table.Column<Guid>(type: "uuid", nullable: true),
ComponentId = table.Column<Guid>(type: "uuid", nullable: true),
KubernetesSecretName = table.Column<string>(type: "character varying(253)", maxLength: 253, nullable: false),
SyncEnabled = table.Column<bool>(type: "boolean", nullable: false),
LastSyncedAt = table.Column<DateTime>(type: "timestamp with time zone", nullable: true),
CreatedAt = table.Column<DateTime>(type: "timestamp with time zone", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_StorageBindings", x => x.Id);
table.ForeignKey(
name: "FK_StorageBindings_AppDeployments_AppDeploymentId",
column: x => x.AppDeploymentId,
principalTable: "AppDeployments",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
table.ForeignKey(
name: "FK_StorageBindings_ClusterComponents_ComponentId",
column: x => x.ComponentId,
principalTable: "ClusterComponents",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
table.ForeignKey(
name: "FK_StorageBindings_StorageLinks_StorageLinkId",
column: x => x.StorageLinkId,
principalTable: "StorageLinks",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
});
migrationBuilder.CreateIndex(
name: "IX_StorageBindings_AppDeploymentId",
table: "StorageBindings",
column: "AppDeploymentId");
migrationBuilder.CreateIndex(
name: "IX_StorageBindings_ComponentId",
table: "StorageBindings",
column: "ComponentId");
migrationBuilder.CreateIndex(
name: "IX_StorageBindings_StorageLinkId",
table: "StorageBindings",
column: "StorageLinkId");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "StorageBindings");
}
}
}