Usenet streaming with a WebDAV server and a SABnzbd-compatible API
C#
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace NzbWebDAV.Database.Migrations
{
/// <inheritdoc />
public partial class AddConfigItemsTable : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "ConfigItems",
columns: table => new
{
ConfigName = table.Column<string>(type: "TEXT", nullable: false),
ConfigValue = table.Column<string>(type: "TEXT", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_ConfigItems", x => x.ConfigName);
});
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "ConfigItems");
}
}
}