using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace ErsatzTV.Infrastructure.Sqlite.Migrations
{
///
public partial class Add_PlexCollection : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn(
name: "LastCollectionsScan",
table: "PlexMediaSource",
type: "TEXT",
nullable: true);
migrationBuilder.CreateTable(
name: "PlexCollection",
columns: table => new
{
Id = table.Column(type: "INTEGER", nullable: false)
.Annotation("Sqlite:Autoincrement", true),
Key = table.Column(type: "TEXT", nullable: true),
Etag = table.Column(type: "TEXT", nullable: true),
Name = table.Column(type: "TEXT", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_PlexCollection", x => x.Id);
});
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "PlexCollection");
migrationBuilder.DropColumn(
name: "LastCollectionsScan",
table: "PlexMediaSource");
}
}
}