40 lines
1.1 KiB
C#
40 lines
1.1 KiB
C#
using System;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace TeleWave.Infrastructure.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class MediaProcessingTiming : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<TimeSpan>(
|
|
name: "ProcessingDuration",
|
|
table: "MediaAssets",
|
|
type: "interval",
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<DateTimeOffset>(
|
|
name: "ProcessingStartedAt",
|
|
table: "MediaAssets",
|
|
type: "timestamp with time zone",
|
|
nullable: true);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "ProcessingDuration",
|
|
table: "MediaAssets");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "ProcessingStartedAt",
|
|
table: "MediaAssets");
|
|
}
|
|
}
|
|
}
|