Usenet streaming with a WebDAV server and a SABnzbd-compatible API
C#
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace NzbWebDAV.Database.Migrations
{
/// <inheritdoc />
public partial class AddCreatedAtToDavItem : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<DateTime>(
name: "CreatedAt",
table: "DavItems",
type: "TEXT",
nullable: false,
defaultValue: DateTime.MinValue); // this is `01/01/0001 00:00:00`
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "CreatedAt",
table: "DavItems");
}
}
}