Files
zap-stream-api/NostrStreamer/Migrations/20240221211542_TrackDuration.cs
2024-02-21 21:16:30 +00:00

30 lines
757 B
C#

using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace NostrStreamer.Migrations
{
/// <inheritdoc />
public partial class TrackDuration : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<decimal>(
name: "Length",
table: "Streams",
type: "numeric",
nullable: false,
defaultValue: 0m);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "Length",
table: "Streams");
}
}
}