52 lines
1.7 KiB
C#
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");
|
|
}
|
|
}
|