Files
Heimdall/src/Heimdall.Infrastructure/Migrations/20261022000000_AddRecordingStorageLocation.cs
T
Arnaud Dartois 2b41ab4ea3
Heimdall Gitea / Build and tests (pull_request) Failing after 4m57s
Heimdall Gitea / Publish versioned release (pull_request) Skipped
fix(storage): record historical object destinations
2026-10-22 19:58:55 +02:00

52 lines
1.7 KiB
C#

using Heimdall.Infrastructure.Data;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Heimdall.Infrastructure.Migrations;
[DbContext(typeof(AppDbContext))]
[Migration("20261022000000_AddRecordingStorageLocation")]
public partial class AddRecordingStorageLocation : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "StorageRoot",
table: "recordings",
type: "character varying(2000)",
maxLength: 2000,
nullable: true);
migrationBuilder.AddColumn<string>(
name: "StorageEndpoint",
table: "recordings",
type: "character varying(2000)",
maxLength: 2000,
nullable: true);
migrationBuilder.AddColumn<string>(
name: "StorageBucket",
table: "recordings",
type: "character varying(256)",
maxLength: 256,
nullable: true);
migrationBuilder.AddColumn<bool>(
name: "StorageLocationCaptured",
table: "recordings",
type: "boolean",
nullable: false,
defaultValue: false);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(name: "StorageRoot", table: "recordings");
migrationBuilder.DropColumn(name: "StorageEndpoint", table: "recordings");
migrationBuilder.DropColumn(name: "StorageBucket", table: "recordings");
migrationBuilder.DropColumn(name: "StorageLocationCaptured", table: "recordings");
}
}